Flow Workflow Tasks
Flow tasks enable programmatic interaction with Flow workflows (state machines) from within workflow steps.
Flow/Transition
Execute a flow transition programmatically. This allows workflows to trigger state transitions in Flow workflows.
task: "Flow/Transition@1"
name: executeTransition
inputs:
entityId: "{{ orderId }}"
entityName: "Order"
transitionName: "manual_forceComplete"
outputs:
- name: result
mapping: "result"
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
entityId | string | Yes | ID of the entity to transition |
entityName | string | Yes | Entity type (e.g., Order, Commodity) |
transitionName | string | Yes | Name of the transition to execute |
Outputs
| Output | Description |
|---|---|
result | Result of the transition execution |
Example: Trigger Flow Transition After Import
activities:
- name: importAndTransition
steps:
- task: "Order/Import@1"
name: importOrder
inputs:
data: "{{ importData }}"
outputs:
- name: order
mapping: "order"
- task: "Flow/Transition@1"
name: activateOrder
inputs:
entityId: "{{ importAndTransition.importOrder.order.orderId }}"
entityName: "Order"
transitionName: "draft_to_active"