[
 {
  "creation": "2012-12-28 10:49:55", 
  "docstatus": 0, 
  "modified": "2013-07-05 15:03:50", 
  "modified_by": "Administrator", 
  "owner": "Administrator"
 }, 
 {
  "autoname": "field:workflow_name", 
  "description": "Defines workflow states and rules for a document.", 
  "doctype": "DocType", 
  "document_type": "Transaction", 
  "icon": "icon-random", 
  "module": "Core", 
  "name": "__common__"
 }, 
 {
  "doctype": "DocField", 
  "name": "__common__", 
  "parent": "Workflow", 
  "parentfield": "fields", 
  "parenttype": "DocType", 
  "permlevel": 0
 }, 
 {
  "cancel": 1, 
  "create": 1, 
  "doctype": "DocPerm", 
  "name": "__common__", 
  "parent": "Workflow", 
  "parentfield": "permissions", 
  "parenttype": "DocType", 
  "permlevel": 0, 
  "read": 1, 
  "role": "System Manager", 
  "write": 1
 }, 
 {
  "doctype": "DocType", 
  "name": "Workflow"
 }, 
 {
  "doctype": "DocField", 
  "fieldname": "workflow_name", 
  "fieldtype": "Data", 
  "label": "Workflow Name", 
  "read_only": 0, 
  "reqd": 1
 }, 
 {
  "description": "DocType on which this Workflow is applicable.", 
  "doctype": "DocField", 
  "fieldname": "document_type", 
  "fieldtype": "Link", 
  "label": "Document Type", 
  "options": "DocType", 
  "reqd": 1
 }, 
 {
  "description": "If checked, all other workflows become inactive.", 
  "doctype": "DocField", 
  "fieldname": "is_active", 
  "fieldtype": "Check", 
  "label": "Is Active"
 }, 
 {
  "description": "Different \"States\" this document can exist in. Like \"Open\", \"Pending Approval\" etc.", 
  "doctype": "DocField", 
  "fieldname": "states", 
  "fieldtype": "Section Break", 
  "label": "States"
 }, 
 {
  "description": "All possible Workflow States and roles of the workflow. <br>Docstatus Options: 0 is\"Saved\", 1 is \"Submitted\" and 2 is \"Cancelled\"", 
  "doctype": "DocField", 
  "fieldname": "workflow_document_states", 
  "fieldtype": "Table", 
  "label": "Workflow Document States", 
  "options": "Workflow Document State", 
  "reqd": 1
 }, 
 {
  "description": "Rules for how states are transitions, like next state and which role is allowed to change state etc.", 
  "doctype": "DocField", 
  "fieldname": "transition_rules", 
  "fieldtype": "Section Break", 
  "label": "Transition Rules"
 }, 
 {
  "description": "Rules defining transition of state in the workflow.", 
  "doctype": "DocField", 
  "fieldname": "workflow_transitions", 
  "fieldtype": "Table", 
  "label": "Workflow Transitions", 
  "options": "Workflow Transition", 
  "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)", 
  "doctype": "DocField", 
  "fieldname": "workflow_state_field", 
  "fieldtype": "Data", 
  "label": "Workflow State Field"
 }, 
 {
  "doctype": "DocPerm"
 }
]