2 Replies Latest reply on Sep 25, 2008 4:28 AM by mputz

    'Global' transitions

    caron1

      Hi,

      I have defined a process (see below).

      From the UI, the user can click a button (at any time of the process) called 'Unsign Data Capture'. Regardless of which state the process is, the state must 'rewind' and execute task node 'process data capture'

      To model this, I have added transitions 'Unsign Data Capture' from each of my nodes back to the 'process data capture' node. I am wondering if there is a better way of doing this ie to indicate a 'global' transition back to a state/nodel

      This is a snapshot of my process:

      
      <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="ClaimLifecycle">
      <start-state name="start">
       <transition to="process data capture"></transition>
      </start-state>
      
      <task-node name="process data capture">
       <task name="process data capture">
       <assignment actor-id="#{claimLifecycleService.getDataCaptureActor}"></assignment>
       </task>
       <transition to="process quality assurance" name="sign data capture"></transition>
      </task-node>
      
      <task-node name="process quality assurance">
       <task name="process quality assurance">
       <assignment pooled-actors="#{claimLifecycleService.getProcessQualityAssuranceTaskPool}"></assignment>
       </task>
       <transition to="process merit assessment" name="sign quality assurance"></transition>
       <transition to="process data capture" name="unsign data capture"></transition>
      </task-node>
      
      <task-node name="process merit assessment">
       <task name="process merit assessment">
       <assignment pooled-actors="#{claimLifecycleService.getProcessMeritAssessmentTaskPool}"></assignment>
       </task>
       <transition to="process data capture" name="unsign data capture"></transition>
       <transition to="end-state1" name="to end-state1"></transition>
      </task-node>
      
      <end-state name="end-state1"></end-state>
      
      </process-definition>
      


      In reality, the process is much longer than this and for each node I have to add the same transition to get me back to 'process data capture'.

      transition to="process data capture" name="unsign data capture"></transition>
      


      Any help will be much appreciated.

      Thanks,
      Caron

        • 1. Re: 'Global' transitions
          kukeltje

           

          ie to indicate a 'global' transition back to a state/nodel

          No sorry, but you can add transitions runtime, but you can ALWAYS play with the token directly and put it wherever you want to. The latter might be one of the nicer options.

          • 2. Re: 'Global' transitions
            mputz

            Have you looked into Superstates, I think this could meet your requirements pretty well. They are visible in the process diagram, and you can signal the outgoing transition from any node inside the super-state.