Table Name: tabWorkflow
Sr | Fieldname | Type | Label | Options |
---|---|---|---|---|
1 | workflow_name |
Data | Workflow Name | |
2 | document_type |
Link |
Document Type
DocType on which this Workflow is applicable. |
DocType |
3 | is_active |
Check |
Is Active
If checked, all other workflows become inactive. |
|
4 | states_head |
Section Break |
States
Different "States" this document can exist in. Like "Open", "Pending Approval" etc. |
|
5 | states |
Table |
Document States
All possible Workflow States and roles of the workflow. Docstatus Options: 0 is"Saved", 1 is "Submitted" and 2 is "Cancelled" |
Workflow Document State |
6 | transition_rules |
Section Break |
Transition Rules
Rules for how states are transitions, like next state and which role is allowed to change state etc. |
|
7 | transitions |
Table |
Transitions
Rules defining transition of state in the workflow. |
Workflow Transition |
8 | workflow_state_field |
Data |
Workflow State Field
Field that represents the Workflow State of the transaction (if field is not present, a new hidden Custom Field will be created) |
Inherits from frappe.model.document.Document
create_custom_field_for_workflow_state (self)
No docs
No docs
No docs
update_default_workflow_status (self)
No docs
No docs
No docs