Data Transformations
Transforming data in Laminar
Running data transformations
Laminar's Lam Language is built entirely on top of JQ. Lam is run on each flow execution and is a JSON data transformation language that can support extremely complex conditional data transformations.
Data transformations access keys via dot notation and are able to reference data retrieved or transformed by previous flows in a workflow using the Global Workflow Object.
Invoking Laminar Keywords
Having a data transformation output one of the specified Laminar Keywords allows for more complex control flow logic to take place.
This is done by formatting the output in a way that is recognizable to the Laminar system as specified by the Laminar Keywords.
.input |
if ((.activity_type == "route-destination-status" or
.activity_type == "update-destinations") and
(.detailed_event? | tostring | test("skipped|failed|completed|loaded")) and
(.order_id | length > 0))
then
{
"lam.resolveThenExecute": {
"lam.workflowId": 60,
"lam.payload": .,
"lam.result": { "status": "OK" }
}
}
else
{ "lam.exit": true }
endLast updated
Was this helpful?