generate_workflow
Generate workflow definitions with states, transitions, and approvals using a builder for FrameIO entities.
Instructions
Generate workflow definitions with states, transitions, and approvals using defineWorkflow() builder
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow display name | |
| states | Yes | Array of workflow states | |
| entityKey | Yes | Entity key this workflow applies to (e.g., pos.order) | |
| description | Yes | Workflow description | |
| statusField | Yes | Field name that stores the workflow status (e.g., status) | |
| transitions | Yes | Array of state transitions | |
| workflowKey | Yes | Workflow key in format {module-id}.{workflow-name} (e.g., pos.order-approval) |