Route the first step of a workflow to the original author

david.klanac's Avatar

david.klanac

27 Jul, 2010 06:40 PM

<system-workflow-definition name="Approval" initial-step="initialize" >
  <triggers>
    <trigger name="email" class="com.cms.workflow.function.EmailProvider" />
    <trigger name="publish" class="com.cms.workflow.function.Publisher" />
    <trigger name="merge" class="com.cms.workflow.function.Merge" />
    <trigger name="assignToWorkflowOwner" class="com.cms.workflow.function.AssignToWorkflowOwner" />
    <trigger name="preserveCurrentUser" class="com.cms.workflow.function.PreserveCurrentUser" />
    <trigger name="version" class="com.cms.workflow.function.Version" />
  </triggers>
  <steps>
    <step type="system" identifier="initialize" label="Initialize" >
      <actions>
        <action identifier="assign-to-owner" label="Assign to owner" move="forward" type="auto">
          <trigger name="assignToWorkflowOwner" />
        </action>
      </actions>
    </step>
    <step type="transition" identifier="owner-hold" label="Owner deciding to submit or save" default-user="admin" >
      <actions>
        <action identifier="owner-self-edit" label="Continue editing" next-id="owner-self-edit">
          <trigger name="preserveCurrentUser" />
        </action>
        <action identifier="to-approver" label="Submit to approver" move="forward" >
          <trigger name="email" />
        </action>
      </actions>
    </step>
    <step type="transition" identifier="approver-hold" label="Approver deciding to publish or review" default-group="Sample-Users" >
      <actions>
        <action identifier="return-to-owner" label="Request changes from owner" next-id="owner-edit-for-approver">
          <trigger name="email" />
          <trigger name="assignToWorkflowOwner" />
        </action>
        <action identifier="approver-edit" label="Edit yourself right now" next-id="approver-self-edit">
          <trigger name="preserveCurrentUser" />
        </action>
        <action identifier="approve-and-publish" label="Approve and publish" move="forward" />
      </actions>
    </step>
    <step type="system" identifier="finalize-edit" label="Finalizing" >
      <actions>
        <action identifier="finalize" label="Finish Workflow" type="auto" move="forward" >
          <trigger name="merge" />
          <trigger name="version" />
        </action>
      </actions>
    </step>
    <step type="system" identifier="publish" label="Publishing" >
      <actions>
        <action identifier="publish" label="Completed" type="auto" move="forward" >
          <trigger name="publish" />
          <trigger name="email" >
            <parameter>
              <name>mode</name>
              <value>completed</value>
            </parameter>
          </trigger>
        </action>
      </actions>
    </step>
    <step type="system" identifier="finish" label="Finished" />
  </steps>
  <non-ordered-steps>
    <step type="edit" identifier="approver-self-edit" label="Approver making changes" default-user="admin" >
      <actions>
        <action identifier="back-to-approver-hold" label="Edit and back to menu" next-id="approver-hold"/>
      </actions>
    </step>
    <step type="edit" identifier="owner-edit-for-approver" label="Owner making changes at request of approver" default-user="admin" >
      <actions>
            <action identifier="make-choice" label="Edit and go to menu of choices" next-id="after-owner-edit">
                <trigger name="preserveCurrentUser" />
            </action>
      </actions>
    </step>
     <step type="transition" identifier="after-owner-edit" label="Owner choosing where to go next" default-user="admin">
        <actions>
            <action identifier="back-to-approver-hold" label="Edit and return to approver" next-id="approver-hold">
          <trigger name="email" />
        </action>
        <action identifier="back-to-owner-hold" label="Edit and back to owner menu" next-id="owner-hold"/>
        </actions>
     </step>
    <step type="edit" identifier="owner-self-edit" label="Owner making changes" default-user="admin" >
      <actions>
        <action identifier="back-to-owner-hold" label="Edit and back to menu" next-id="owner-hold"/>
      </actions>
    </step>
  </non-ordered-steps>
</system-workflow-definition>
  1. Tim closed this discussion on 06 Oct, 2010 02:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac