Skip to main content

Workflow API

$w.cloud.callWorkflow

$w.cloud.callWorkflow(params: ICallWedaApiParams) => Promise<any>

Feature Description

Invoke the WeDa workflow service

Input Parameters

params: ICallWedaApiParams

PropertyTypeDefault ValueRequiredDescription
actionstringYesMethod name
dataRecord<string, any>NoCustom parameters for the method. envType, envId, uid, and source do not need to be filled in
capitalizeDataKeybooleanNoWhether 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))