new module:api/WorkflowTriggerApi(apiClient)
- Source:
Constructs a new WorkflowTriggerApi.
Parameters:
| Name | Type | Description |
|---|---|---|
apiClient |
module:ApiClient | Optional API client implementation to use, |
Methods
triggerWorkflow(accountId, workflowDefinitionId, body, optsOrCallback, callback)
- Source:
Creates a new workflow instance after authenticating with DS Account Server
Creates a new workflow instance after authenticating with DS Account Server
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
accountId |
String | Account ID |
|||||||||
workflowDefinitionId |
String | Workflow Definition ID |
|||||||||
body |
module:model/TriggerPayload | JSON payload that will be passed to the triggered workflow |
|||||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
|||||||||
callback |
module:api/WorkflowTriggerApi~triggerWorkflowCallback | The callback function, accepting three arguments: error, data, response |
Type Definitions
triggerWorkflowCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the triggerWorkflow operation. If none specified a Promise will be returned.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
module:model/TriggerWorkflowViaPostResponse | 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. |