Workflow Hub runtime now provides run context information dynamically via jq. The following special keywords have been introduced:
- $WORKFLOW.runId: Provides the runId of the run.
- $WORKFLOW.stateName: Provides the name of the current state.
Following is an example workflow that adds the runId and the current stateName to the output:
id: workflow-context-eg
version: '1.0'
specVersion: "0.7.0"
name: Workflow Context Example
start: Start
states:
- name: Start
type: operation
stateDataFilter:
input: '${ .runId = $WORKFLOW.runId }'
output: '${ .stateName = $WORKFLOW.stateName }'
end: true