The execute keyword executes each specified workflow in the array with its corresponding payload synchronously. This blocks the current workflow's execution until all specified workflows complete.
Invocation
Data transformation must output:
{"lam.execute": [{"lam.workflowId":39,"lam.payload":{/* payload data */}} ]}
Key
Description
Type
execute
The workflows to execute with a payload
Array<{ workflowId, payload }>
workflowId
The workflow ID to invoke
Integer
payload
The payload to pass to the workflow
Object
Examples
In this example we map an array of packages to the execute keyword. Laminar will then invoke workflow 39 with each individual payload in sequence.