1 Reply Latest reply on Nov 13, 2009 4:33 AM by jbarrez

    How to model Rework senario in JBPM

      I've created a workflow process, but I'm unable to proceed further.

      Requirement:
      1) Assign Parallel Tasks
      2) Approval flow should go next level if all tasks gets completed
      (or)
      A new task should be created if any of one parallel approver initiate rework


      Process Definition:

      <start><transition to="initiate-all-tasks"/></start>
      <fork name="initiate-all-tasks"><transition to="parallel1"/><transition to="parallel2"/></fork>
      <task name="parallel1">
      <transition name="approve" to="join"/><transition name="rework" to="inactivate-tasks"/>
      </task>
      <task name="parallel2">
      <transition name="approve" to="join"/><transition name="rework" to="inactivate-tasks"/>
      </task>
      <join name="join">
      <transition to="another-task"/>
      </join>
      <custom name="inactivate-tasks"><transition to="rework-task"/></custom>
      <task name="rework-task"><transition to="initiate-all-tasks"/></task>
      <task name="another-task">
      ..................
      


      As far as approval process everything is working fine.
      But i'm stuck with Rework flow at Custom Node. Any suggestions ??