new module:api/WorkflowInstanceManagementApi(apiClient)
Constructs a new WorkflowInstanceManagementApi.
Parameters:
| Name | Type | Description |
|---|---|---|
apiClient |
module:ApiClient | Optional API client implementation to use, |
Methods
cancelWorkflowInstance(accountId, instanceId, callback)
Cancels a running workflow instance.
Cancels a running workflow instance.
Parameters:
| Name | Type | Description |
|---|---|---|
accountId |
String | Account ID |
instanceId |
String | DS Workflow Instance Id (dacId) |
callback |
module:api/WorkflowInstanceManagementApi~cancelWorkflowInstanceCallback | The callback function, accepting three arguments: error, data, response |
getWorkflowHistory(accountId, instanceId, callback)
Get List of Step Histories
Returns a list of step history for a workflow instance
Parameters:
| Name | Type | Description |
|---|---|---|
accountId |
String | Account ID |
instanceId |
String | DS Workflow Instance Id (dacId) |
callback |
module:api/WorkflowInstanceManagementApi~getWorkflowHistoryCallback | The callback function, accepting three arguments: error, data, response |
getWorkflowInstance(accountId, workflowDefinitionId, instanceId, callback)
Get Workflow Instance Details
Returns the details for a specific instance for a deployed workflow definition.
Parameters:
| Name | Type | Description |
|---|---|---|
accountId |
String | Account ID |
workflowDefinitionId |
String | Workflow Definition ID |
instanceId |
String | DS Workflow Instance Id (dacId) |
callback |
module:api/WorkflowInstanceManagementApi~getWorkflowInstanceCallback | The callback function, accepting three arguments: error, data, response |
getWorkflowInstances(accountId, workflowDefinitionId, callback)
Get List of Workflow Instances
Returns the list of instances for a deployed workflow definition.
Parameters:
| Name | Type | Description |
|---|---|---|
accountId |
String | Account ID |
workflowDefinitionId |
String | Workflow Definition ID |
callback |
module:api/WorkflowInstanceManagementApi~getWorkflowInstancesCallback | The callback function, accepting three arguments: error, data, response |
Type Definitions
cancelWorkflowInstanceCallback(error, data, If)
(Optional) Callback function to receive the result of the cancelWorkflowInstance operation. If none specified a Promise will be returned.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
module:model/CancelResponse | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
getWorkflowHistoryCallback(error, data, If)
(Optional) Callback function to receive the result of the getWorkflowHistory operation. If none specified a Promise will be returned.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
Array:.<module:model/WorkflowStepHistory:> | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
getWorkflowInstanceCallback(error, data, If)
(Optional) Callback function to receive the result of the getWorkflowInstance operation. If none specified a Promise will be returned.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
module:model/WorkflowInstance | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
getWorkflowInstancesCallback(error, data, If)
(Optional) Callback function to receive the result of the getWorkflowInstances operation. If none specified a Promise will be returned.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
Array:.<module:model/WorkflowInstance:> | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |