Create Workflow
create_workflowCreate a workflow for a DocType with custom states and transitions, specifying allowed roles for each action.
Instructions
Create a new workflow for a DocType
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| states | Yes | Workflow states | |
| is_active | No | Whether workflow is active | |
| transitions | Yes | Workflow transitions | |
| document_type | Yes | DocType this workflow applies to | |
| workflow_name | Yes | Workflow name |