cancel
Showing results for 
Search instead for 
Did you mean: 

How to by-pass a task?

michel
Champ in-the-making
Champ in-the-making
Hi all,

I need to create a “writing and approveâ€
2 REPLIES 2

davidc
Star Contributor
Star Contributor
It really depends on the requirements of your workflow.

For example, you could require that only 'n' writers need to complete before moving on.  Or, you could allow the approver to override the writers and allow them to explicitly move forward, even if the writers haven't completed yet.

The trick in both these cases is a feature of join called NoutOfM - this just means you can specify how many of the forks need to complete before the join progresses.  So, you could specify '1' for your writers join which means that the first writer to complete will move the workflow forward to the approver.

If you want to allow the approver to override, then I would create a further fork that splits into the writers fork you have now on one side, and allocate an 'in progress' task to the approver on the other side.  Set the join NoutOfM to 1.  Provide an 'approve' transition for the approver on the 'in progress' task.  Either the writers will complete first, or the approver (if they get inpatient).

To set NoutOfM use the following script:

<join>
  <event type="node-enter">
     <script>
        node.nOutOfM = 1;
     </script>
  </event>
  …
</join>

Hope that helps.

michel
Champ in-the-making
Champ in-the-making
Thank you,
I'm going to test this solution right now.