[refactor] moved workflow to separate module
This commit is contained in:
parent
e1089d1f2d
commit
2f30edd65c
30 changed files with 307 additions and 306 deletions
|
|
@ -1,94 +0,0 @@
|
|||
{
|
||||
"autoname": "field:workflow_name",
|
||||
"creation": "2012-12-28 10:49:55.000000",
|
||||
"description": "Defines workflow states and rules for a document.",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"document_type": "Transaction",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "workflow_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "Workflow Name",
|
||||
"permlevel": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"description": "DocType on which this Workflow is applicable.",
|
||||
"fieldname": "document_type",
|
||||
"fieldtype": "Link",
|
||||
"label": "Document Type",
|
||||
"options": "DocType",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"description": "If checked, all other workflows become inactive.",
|
||||
"fieldname": "is_active",
|
||||
"fieldtype": "Check",
|
||||
"label": "Is Active",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Different \"States\" this document can exist in. Like \"Open\", \"Pending Approval\" etc.",
|
||||
"fieldname": "states",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "States",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "All possible Workflow States and roles of the workflow. <br>Docstatus Options: 0 is\"Saved\", 1 is \"Submitted\" and 2 is \"Cancelled\"",
|
||||
"fieldname": "workflow_document_states",
|
||||
"fieldtype": "Table",
|
||||
"label": "Workflow Document States",
|
||||
"options": "Workflow Document State",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"description": "Rules for how states are transitions, like next state and which role is allowed to change state etc.",
|
||||
"fieldname": "transition_rules",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Transition Rules",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Rules defining transition of state in the workflow.",
|
||||
"fieldname": "workflow_transitions",
|
||||
"fieldtype": "Table",
|
||||
"label": "Workflow Transitions",
|
||||
"options": "Workflow Transition",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"default": "workflow_state",
|
||||
"description": "Field that represents the Workflow State of the transaction (if field is not present, a new hidden Custom Field will be created)",
|
||||
"fieldname": "workflow_state_field",
|
||||
"fieldtype": "Data",
|
||||
"label": "Workflow State Field",
|
||||
"permlevel": 0
|
||||
}
|
||||
],
|
||||
"icon": "icon-random",
|
||||
"idx": 1,
|
||||
"modified": "2014-01-20 17:49:35.000000",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Workflow",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
"cancel": 1,
|
||||
"create": 1,
|
||||
"delete": 1,
|
||||
"email": 1,
|
||||
"permlevel": 0,
|
||||
"print": 1,
|
||||
"read": 1,
|
||||
"role": "System Manager",
|
||||
"write": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
"autoname": "field:workflow_action_name",
|
||||
"creation": "2012-12-28 10:49:56.000000",
|
||||
"description": "Workflow Action Master",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "workflow_action_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "Workflow Action Name",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
}
|
||||
],
|
||||
"icon": "icon-flag",
|
||||
"idx": 1,
|
||||
"modified": "2014-01-20 17:49:35.000000",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Workflow Action",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
"cancel": 1,
|
||||
"create": 1,
|
||||
"delete": 1,
|
||||
"email": 1,
|
||||
"permlevel": 0,
|
||||
"print": 1,
|
||||
"read": 1,
|
||||
"role": "System Manager",
|
||||
"write": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
{
|
||||
"allow_import": 1,
|
||||
"creation": "2013-02-22 01:27:36",
|
||||
"description": "Represents the states allowed in one document and role assigned to change the state.",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"document_type": "Master",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "state",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "State",
|
||||
"options": "Workflow State",
|
||||
"permlevel": 0,
|
||||
"print_width": "160px",
|
||||
"reqd": 1,
|
||||
"width": "160px"
|
||||
},
|
||||
{
|
||||
"description": "0 - Draft; 1 - Submitted; 2 - Cancelled",
|
||||
"fieldname": "doc_status",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Doc Status",
|
||||
"options": "0\n1\n2",
|
||||
"permlevel": 0,
|
||||
"print_width": "80px",
|
||||
"width": "80px"
|
||||
},
|
||||
{
|
||||
"fieldname": "update_field",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Update Field",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "update_value",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Update Value",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "allow_edit",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Only Allow Edit For",
|
||||
"options": "Role",
|
||||
"permlevel": 0,
|
||||
"print_width": "160px",
|
||||
"reqd": 1,
|
||||
"width": "160px"
|
||||
},
|
||||
{
|
||||
"fieldname": "message",
|
||||
"fieldtype": "Text",
|
||||
"in_list_view": 1,
|
||||
"label": "Message",
|
||||
"permlevel": 0,
|
||||
"print_width": "160px",
|
||||
"reqd": 0,
|
||||
"width": "160px"
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"istable": 1,
|
||||
"modified": "2014-05-27 06:35:01.070157",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Workflow Document State",
|
||||
"owner": "Administrator",
|
||||
"permissions": []
|
||||
}
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
{
|
||||
"creation": "2013-02-22 01:27:36.000000",
|
||||
"description": "Defines actions on states and the next step and allowed roles.",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "state",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "State",
|
||||
"options": "Workflow State",
|
||||
"permlevel": 0,
|
||||
"print_width": "200px",
|
||||
"reqd": 1,
|
||||
"width": "200px"
|
||||
},
|
||||
{
|
||||
"fieldname": "action",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Action",
|
||||
"options": "Workflow Action",
|
||||
"permlevel": 0,
|
||||
"print_width": "200px",
|
||||
"reqd": 1,
|
||||
"width": "200px"
|
||||
},
|
||||
{
|
||||
"fieldname": "next_state",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Next State",
|
||||
"options": "Workflow State",
|
||||
"permlevel": 0,
|
||||
"print_width": "200px",
|
||||
"reqd": 1,
|
||||
"width": "200px"
|
||||
},
|
||||
{
|
||||
"fieldname": "allowed",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Allowed",
|
||||
"options": "Role",
|
||||
"permlevel": 0,
|
||||
"print_width": "200px",
|
||||
"reqd": 1,
|
||||
"width": "200px"
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"istable": 1,
|
||||
"modified": "2013-12-20 19:21:55.000000",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Workflow Transition",
|
||||
"owner": "Administrator"
|
||||
}
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
Core
|
||||
Website
|
||||
Workflow
|
||||
0
frappe/workflow/__init__.py
Normal file
0
frappe/workflow/__init__.py
Normal file
0
frappe/workflow/doctype/__init__.py
Normal file
0
frappe/workflow/doctype/__init__.py
Normal file
94
frappe/workflow/doctype/workflow/workflow.json
Normal file
94
frappe/workflow/doctype/workflow/workflow.json
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{
|
||||
"autoname": "field:workflow_name",
|
||||
"creation": "2012-12-28 10:49:55.000000",
|
||||
"description": "Defines workflow states and rules for a document.",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"document_type": "Transaction",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "workflow_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "Workflow Name",
|
||||
"permlevel": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"description": "DocType on which this Workflow is applicable.",
|
||||
"fieldname": "document_type",
|
||||
"fieldtype": "Link",
|
||||
"label": "Document Type",
|
||||
"options": "DocType",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"description": "If checked, all other workflows become inactive.",
|
||||
"fieldname": "is_active",
|
||||
"fieldtype": "Check",
|
||||
"label": "Is Active",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Different \"States\" this document can exist in. Like \"Open\", \"Pending Approval\" etc.",
|
||||
"fieldname": "states",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "States",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "All possible Workflow States and roles of the workflow. <br>Docstatus Options: 0 is\"Saved\", 1 is \"Submitted\" and 2 is \"Cancelled\"",
|
||||
"fieldname": "workflow_document_states",
|
||||
"fieldtype": "Table",
|
||||
"label": "Workflow Document States",
|
||||
"options": "Workflow Document State",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"description": "Rules for how states are transitions, like next state and which role is allowed to change state etc.",
|
||||
"fieldname": "transition_rules",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Transition Rules",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Rules defining transition of state in the workflow.",
|
||||
"fieldname": "workflow_transitions",
|
||||
"fieldtype": "Table",
|
||||
"label": "Workflow Transitions",
|
||||
"options": "Workflow Transition",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
"default": "workflow_state",
|
||||
"description": "Field that represents the Workflow State of the transaction (if field is not present, a new hidden Custom Field will be created)",
|
||||
"fieldname": "workflow_state_field",
|
||||
"fieldtype": "Data",
|
||||
"label": "Workflow State Field",
|
||||
"permlevel": 0
|
||||
}
|
||||
],
|
||||
"icon": "icon-random",
|
||||
"idx": 1,
|
||||
"modified": "2014-01-20 17:49:35.000001",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Workflow",
|
||||
"name": "Workflow",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
"cancel": 1,
|
||||
"create": 1,
|
||||
"delete": 1,
|
||||
"email": 1,
|
||||
"permlevel": 0,
|
||||
"print": 1,
|
||||
"read": 1,
|
||||
"role": "System Manager",
|
||||
"write": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
36
frappe/workflow/doctype/workflow_action/workflow_action.json
Normal file
36
frappe/workflow/doctype/workflow_action/workflow_action.json
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"autoname": "field:workflow_action_name",
|
||||
"creation": "2012-12-28 10:49:56.000000",
|
||||
"description": "Workflow Action Master",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "workflow_action_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "Workflow Action Name",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
}
|
||||
],
|
||||
"icon": "icon-flag",
|
||||
"idx": 1,
|
||||
"modified": "2014-01-20 17:49:35.000001",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Workflow",
|
||||
"name": "Workflow Action",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
"cancel": 1,
|
||||
"create": 1,
|
||||
"delete": 1,
|
||||
"email": 1,
|
||||
"permlevel": 0,
|
||||
"print": 1,
|
||||
"read": 1,
|
||||
"role": "System Manager",
|
||||
"write": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
"allow_import": 1,
|
||||
"creation": "2013-02-22 01:27:36",
|
||||
"description": "Represents the states allowed in one document and role assigned to change the state.",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"document_type": "Master",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "state",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "State",
|
||||
"options": "Workflow State",
|
||||
"permlevel": 0,
|
||||
"print_width": "160px",
|
||||
"reqd": 1,
|
||||
"width": "160px"
|
||||
},
|
||||
{
|
||||
"description": "0 - Draft; 1 - Submitted; 2 - Cancelled",
|
||||
"fieldname": "doc_status",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Doc Status",
|
||||
"options": "0\n1\n2",
|
||||
"permlevel": 0,
|
||||
"print_width": "80px",
|
||||
"width": "80px"
|
||||
},
|
||||
{
|
||||
"fieldname": "update_field",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Update Field",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "update_value",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Update Value",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"fieldname": "allow_edit",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Only Allow Edit For",
|
||||
"options": "Role",
|
||||
"permlevel": 0,
|
||||
"print_width": "160px",
|
||||
"reqd": 1,
|
||||
"width": "160px"
|
||||
},
|
||||
{
|
||||
"fieldname": "message",
|
||||
"fieldtype": "Text",
|
||||
"in_list_view": 1,
|
||||
"label": "Message",
|
||||
"permlevel": 0,
|
||||
"print_width": "160px",
|
||||
"reqd": 0,
|
||||
"width": "160px"
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"istable": 1,
|
||||
"modified": "2014-05-27 06:35:01.070158",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Workflow",
|
||||
"name": "Workflow Document State",
|
||||
"owner": "Administrator",
|
||||
"permissions": []
|
||||
}
|
||||
|
|
@ -1,56 +1,56 @@
|
|||
{
|
||||
"allow_import": 1,
|
||||
"autoname": "field:workflow_state_name",
|
||||
"creation": "2012-12-28 10:49:56.000000",
|
||||
"description": "Workflow state represents the current state of a document.",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"document_type": "Master",
|
||||
"allow_import": 1,
|
||||
"autoname": "field:workflow_state_name",
|
||||
"creation": "2012-12-28 10:49:56.000000",
|
||||
"description": "Workflow state represents the current state of a document.",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"document_type": "Master",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "workflow_state_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "State",
|
||||
"permlevel": 0,
|
||||
"fieldname": "workflow_state_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "State",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
},
|
||||
{
|
||||
"description": "Icon will appear on the button",
|
||||
"fieldname": "icon",
|
||||
"fieldtype": "Select",
|
||||
"label": "Icon",
|
||||
"options": "\nglass\nmusic\nsearch\nenvelope\nheart\nstar\nstar-empty\nuser\nfilm\nth-large\nth\nth-list\nok\nremove\nzoom-in\nzoom-out\noff\nsignal\ncog\ntrash\nhome\nfile\ntime\nroad\ndownload-alt\ndownload\nupload\ninbox\nplay-circle\nrepeat\nrefresh\nlist-alt\nlock\nflag\nheadphones\nvolume-off\nvolume-down\nvolume-up\nqrcode\nbarcode\ntag\ntags\nbook\nbookmark\nprint\ncamera\nfont\nbold\nitalic\ntext-height\ntext-width\nalign-left\nalign-center\nalign-right\nalign-justify\nlist\nindent-left\nindent-right\nfacetime-video\npicture\npencil\nmap-marker\nadjust\ntint\nedit\nshare\ncheck\nmove\nstep-backward\nfast-backward\nbackward\nplay\npause\nstop\nforward\nfast-forward\nstep-forward\neject\nchevron-left\nchevron-right\nplus-sign\nminus-sign\nremove-sign\nok-sign\nquestion-sign\ninfo-sign\nscreenshot\nremove-circle\nok-circle\nban-circle\narrow-left\narrow-right\narrow-up\narrow-down\nshare-alt\nresize-full\nresize-small\nplus\nminus\nasterisk\nexclamation-sign\ngift\nleaf\nfire\neye-open\neye-close\nwarning-sign\nplane\ncalendar\nrandom\ncomment\nmagnet\nchevron-up\nchevron-down\nretweet\nshopping-cart\nfolder-close\nfolder-open\nresize-vertical\nresize-horizontal\nhdd\nbullhorn\nbell\ncertificate\nthumbs-up\nthumbs-down\nhand-right\nhand-left\nhand-up\nhand-down\ncircle-arrow-right\ncircle-arrow-left\ncircle-arrow-up\ncircle-arrow-down\nglobe\nwrench\ntasks\nfilter\nbriefcase\nfullscreen",
|
||||
"permlevel": 0,
|
||||
"description": "Icon will appear on the button",
|
||||
"fieldname": "icon",
|
||||
"fieldtype": "Select",
|
||||
"label": "Icon",
|
||||
"options": "\nglass\nmusic\nsearch\nenvelope\nheart\nstar\nstar-empty\nuser\nfilm\nth-large\nth\nth-list\nok\nremove\nzoom-in\nzoom-out\noff\nsignal\ncog\ntrash\nhome\nfile\ntime\nroad\ndownload-alt\ndownload\nupload\ninbox\nplay-circle\nrepeat\nrefresh\nlist-alt\nlock\nflag\nheadphones\nvolume-off\nvolume-down\nvolume-up\nqrcode\nbarcode\ntag\ntags\nbook\nbookmark\nprint\ncamera\nfont\nbold\nitalic\ntext-height\ntext-width\nalign-left\nalign-center\nalign-right\nalign-justify\nlist\nindent-left\nindent-right\nfacetime-video\npicture\npencil\nmap-marker\nadjust\ntint\nedit\nshare\ncheck\nmove\nstep-backward\nfast-backward\nbackward\nplay\npause\nstop\nforward\nfast-forward\nstep-forward\neject\nchevron-left\nchevron-right\nplus-sign\nminus-sign\nremove-sign\nok-sign\nquestion-sign\ninfo-sign\nscreenshot\nremove-circle\nok-circle\nban-circle\narrow-left\narrow-right\narrow-up\narrow-down\nshare-alt\nresize-full\nresize-small\nplus\nminus\nasterisk\nexclamation-sign\ngift\nleaf\nfire\neye-open\neye-close\nwarning-sign\nplane\ncalendar\nrandom\ncomment\nmagnet\nchevron-up\nchevron-down\nretweet\nshopping-cart\nfolder-close\nfolder-open\nresize-vertical\nresize-horizontal\nhdd\nbullhorn\nbell\ncertificate\nthumbs-up\nthumbs-down\nhand-right\nhand-left\nhand-up\nhand-down\ncircle-arrow-right\ncircle-arrow-left\ncircle-arrow-up\ncircle-arrow-down\nglobe\nwrench\ntasks\nfilter\nbriefcase\nfullscreen",
|
||||
"permlevel": 0,
|
||||
"reqd": 0
|
||||
},
|
||||
},
|
||||
{
|
||||
"description": "Style represents the button color: Success - Green, Danger - Red, Inverse - Black, Primary - Dark Blue, Info - Light Blue, Warning - Orange",
|
||||
"fieldname": "style",
|
||||
"fieldtype": "Select",
|
||||
"label": "Style",
|
||||
"options": "\nPrimary\nInfo\nSuccess\nWarning\nDanger\nInverse",
|
||||
"permlevel": 0,
|
||||
"description": "Style represents the button color: Success - Green, Danger - Red, Inverse - Black, Primary - Dark Blue, Info - Light Blue, Warning - Orange",
|
||||
"fieldname": "style",
|
||||
"fieldtype": "Select",
|
||||
"label": "Style",
|
||||
"options": "\nPrimary\nInfo\nSuccess\nWarning\nDanger\nInverse",
|
||||
"permlevel": 0,
|
||||
"reqd": 0
|
||||
}
|
||||
],
|
||||
"icon": "icon-flag",
|
||||
"idx": 1,
|
||||
"modified": "2014-01-20 17:49:35.000000",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Workflow State",
|
||||
"owner": "Administrator",
|
||||
],
|
||||
"icon": "icon-flag",
|
||||
"idx": 1,
|
||||
"modified": "2014-01-20 17:49:35.000001",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Workflow",
|
||||
"name": "Workflow State",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
"cancel": 1,
|
||||
"create": 1,
|
||||
"delete": 1,
|
||||
"email": 1,
|
||||
"permlevel": 0,
|
||||
"print": 1,
|
||||
"read": 1,
|
||||
"role": "System Manager",
|
||||
"cancel": 1,
|
||||
"create": 1,
|
||||
"delete": 1,
|
||||
"email": 1,
|
||||
"permlevel": 0,
|
||||
"print": 1,
|
||||
"read": 1,
|
||||
"role": "System Manager",
|
||||
"write": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"creation": "2013-02-22 01:27:36.000000",
|
||||
"description": "Defines actions on states and the next step and allowed roles.",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "state",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "State",
|
||||
"options": "Workflow State",
|
||||
"permlevel": 0,
|
||||
"print_width": "200px",
|
||||
"reqd": 1,
|
||||
"width": "200px"
|
||||
},
|
||||
{
|
||||
"fieldname": "action",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Action",
|
||||
"options": "Workflow Action",
|
||||
"permlevel": 0,
|
||||
"print_width": "200px",
|
||||
"reqd": 1,
|
||||
"width": "200px"
|
||||
},
|
||||
{
|
||||
"fieldname": "next_state",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Next State",
|
||||
"options": "Workflow State",
|
||||
"permlevel": 0,
|
||||
"print_width": "200px",
|
||||
"reqd": 1,
|
||||
"width": "200px"
|
||||
},
|
||||
{
|
||||
"fieldname": "allowed",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Allowed",
|
||||
"options": "Role",
|
||||
"permlevel": 0,
|
||||
"print_width": "200px",
|
||||
"reqd": 1,
|
||||
"width": "200px"
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"istable": 1,
|
||||
"modified": "2013-12-20 19:21:55.000001",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Workflow",
|
||||
"name": "Workflow Transition",
|
||||
"owner": "Administrator"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue