3 Replies Latest reply on Dec 20, 2007 6:34 AM by Markus Demo

    Phase status with super-state

    Markus Demo Newbie

      hi community,

      consider the following process definition:

      <process-definition xmlns="" name="testprocess2">
       <start-state name="start">
       <transition to="Phase1"></transition>
       </start-state>
      
       <super-state name="Phase1">
       <state name="state1">
       <transition to="state2"></transition>
       </state>
       <state name="state2">
       <transition to="state3"></transition>
       </state>
       <state name="state3"></state>
       <transition to="Phase2"></transition>
       </super-state>
      
       <super-state name="Phase2">
       <state name="state4"></state>
       <transition to="Phase3"></transition>
       </super-state>
      
       <super-state name="Phase3">
       <state name="state5"></state>
       <transition to="end"></transition>
       </super-state>
      
       <end-state name="end"></end-state>
      </process-definition>
      


      In our user interface we have a status list (containing only the super-states):
      Phase 1
      Phase 2
      Phase 3

      If a phase is finished, then a green icon will be displayed near the label. For example:
      State 1 is enter, then Phase 1 is active
      State 2 is enter, Phase 1 is still active
      State 3 is enter, Phase 1 is still active
      State 4 is enter, Phase 1 should be green and Phase 2 is active
      ...

      Is there a way to determine which super-state has ended, like Task? Should we implement our own super-state node which does this behavoir?

      thanks for any tips
      greetings markus