<?xml version="1.0"?>
<dc-workflow workflow_id="todo_item_workflow" title="Simple Publication Workflow" description=" - Simple workflow that is useful for basic web sites. - Things start out as private, and can either be submitted for review, or published directly. - The creator of a content item can edit the item even after it is published." state_variable="review_state"         initial_state="open" manager_bypass="False" >
 <permission>Access contents information</permission>
 <permission>Change portal events</permission>
 <permission>Modify portal content</permission>
 <permission>View</permission>
 <state state_id="completed" title="Completed" >
  <exit-transition transition_id="reopen" />
  
  
  
 </state>
 <state state_id="open" title="Open" >
  <exit-transition transition_id="complete" />
  
  
  
 </state>
 <transition transition_id="complete" title="Complete" new_state="completed" trigger="USER" before_script="" after_script="" >
  <description>Complete this task</description>
  <action url="%(content_url)s/content_status_modify?workflow_action=complete" category="workflow" icon="">Complete</action>
  <guard >
   <guard-permission>Modify portal content</guard-permission>
  </guard>
  
 </transition>
 <transition transition_id="reopen" title="Reopen" new_state="open" trigger="USER" before_script="" after_script="" >
  <description>Whoops! This task is still in progress.</description>
  <action url="%(content_url)s/content_status_modify?workflow_action=reopen" category="workflow" icon="">Reopen</action>
  <guard >
   <guard-permission>Modify portal content</guard-permission>
  </guard>
  
 </transition>
 <worklist worklist_id="reviewer_queue" title="" >
  <description>Reviewer tasks</description>
  <action url="%(portal_url)s/search?review_state=pending" category="global" icon="">Pending (%(count)d)</action>
  <guard >
   <guard-permission>Review portal content</guard-permission>
  </guard>
  <match name="review_state" values="pending" />
 </worklist>
 <variable variable_id="action" for_catalog="False" for_status="True" update_always="True" >
  <description>Previous transition</description>
  <default>
   
   <expression>transition/getId|nothing</expression>
  </default>
  <guard >
  </guard>
 </variable>
 <variable variable_id="actor" for_catalog="False" for_status="True" update_always="True" >
  <description>The ID of the user who performed the previous transition</description>
  <default>
   
   <expression>user/getId</expression>
  </default>
  <guard >
  </guard>
 </variable>
 <variable variable_id="comments" for_catalog="False" for_status="True" update_always="True" >
  <description>Comment about the last transition</description>
  <default>
   
   <expression>python:state_change.kwargs.get('comment', '')</expression>
  </default>
  <guard >
  </guard>
 </variable>
 <variable variable_id="review_history" for_catalog="False" for_status="False" update_always="False" >
  <description>Provides access to workflow history</description>
  <default>
   
   <expression>state_change/getHistory</expression>
  </default>
  <guard >
   <guard-permission>Request review</guard-permission>
   <guard-permission>Review portal content</guard-permission>
  </guard>
 </variable>
 <variable variable_id="time" for_catalog="False" for_status="True" update_always="True" >
  <description>When the previous transition was performed</description>
  <default>
   
   <expression>state_change/getDateTime</expression>
  </default>
  <guard >
  </guard>
 </variable>
 
</dc-workflow>
