lam.asyncExecute
Learn more about the asyncExecute keyword
Invocation
Data transformation for a flow must output:
Key | Description | Type |
---|---|---|
asyncExecute | The workflows to execute asynchronously with a payload. | Array { lam.workflowId, lam.payload } |
workflowId | The workflow ID to invoke asynchronously. | Integer |
payload | The payload to pass the workflow we're invoking. | Object |
Functionality
The asyncExecute
keyword will execute each specified workflow in thelam.ayncExecute
array with its corresponding payload. This keyword allows for iterative operations (i.e. running a POST
request for various objects in a list) that should be run asynchronously and will not block the current running workflow's execution.
Examples
In this example we map an array of packages to the
asyncExecute
keyword. Laminar will then invoke workflow 39 with each individual payload in parallel.
Last updated