Revision 5821
Added by Jing Tao over 13 years ago
scheduleWorkflow.js | ||
---|---|---|
31 | 31 |
* url - metacat url to hit |
32 | 32 |
* workflowId - lsid of the workflow |
33 | 33 |
* karid - the lsid of the kar file which contains the workflow |
34 |
* sessionid - id of the session |
|
35 |
* authServiceURL - the url of the authentication service |
|
36 |
* authorizationURL - the url of the authorization service |
|
34 | 37 |
* workflowName - used for display purposes. |
35 | 38 |
* divId - the name of the div where the results should be put |
36 | 39 |
*/ |
37 |
function getWorkflowRunSection(url, workflowId, workflowName, karid, divId) { |
|
38 |
var requestUrl = url + '?action=getScheduledWorkflow&workflowid=' + workflowId +'&karid='+karid+ '&qformat=sanparks&workflowname=' + workflowName; |
|
39 |
//alert('getWorkflowRunSection - url: ' + url + ' workflowId: ' + workflowId + ' workflowName: ' + workflowName + ' divId: ' + divId+' karid: '+karid); |
|
40 |
function getWorkflowRunSection(url, workflowId, workflowName, karid, sessionid, authServiceURL, authorizationURL, divId) { |
|
41 |
var requestUrl = url + '?action=getScheduledWorkflow&workflowid=' + workflowId +'&karid='+karid+ '&qformat=sanparks&workflowname=' + workflowName |
|
42 |
+'&sessid='+sessionid+'&authServiceURL='+authServiceURL+'&authorizationURL='+authorizationURL; |
|
43 |
//alert('getWorkflowRunSection - url: ' + url + ' workflowId: ' + workflowId + ' workflowName: ' + workflowName + ' divId: ' + divId+' karid: '+karid+' authServiceURL: '+authServiceURL+'authorizationURL: '+authorizationURL); |
|
40 | 44 |
var submitResults = submitUrlIntoDiv(requestUrl, divId); |
41 | 45 |
} |
42 | 46 |
|
Also available in: Unified diff
Add more parameters such as sessionid, authenticationURL and authorizationURL for unscheduleWorkflow, rescheduleWorkflow and delete action.