lam.asyncExecute
Learn more about the asyncExecute keyword
Functionality
The asyncExecute
keyword executes each specified workflow in parallel. Unlike lam.execute
, this keyword runs workflows asynchronously and does not block the current workflow's execution.
Invocation
Data transformation must output:
Key
Description
Type
asyncExecute
The workflows to execute with a payload
Array<{ workflowId, payload }>
workflowId
The workflow ID to invoke asynchronously
Integer
payload
The payload to pass to the workflow
Object
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
Was this helpful?