Workflow API
$w.cloud.callWorkflow
$w.cloud.callWorkflow(params: ICallWedaApiParams) => Promise<any>
Feature Description
Invoke the WeDa workflow service
Input Parameters
params: ICallWedaApiParams
| Property | Type | Default Value | Required | Description |
|---|---|---|---|---|
| action | string | Yes | Method name | |
| data | Record<string, any> | No | Custom parameters for the method. envType, envId, uid, and source do not need to be filled in | |
| capitalizeDataKey | boolean | No | Whether to automatically convert data keys to upper camel case. Default is true, meaning you can use lower camel case keys in data during usage |
Response Parameters
None
Example
$w.cloud
.callWorkflow({
action: "DescribeProcessInstanceDetails",
data: {
processInstanceId: "xxxxxx",
},
})
.then((res) => console.log(res));