[jboss-user] [JBoss jBPM] - Phase status with super-state

realdemo do-not-reply at jboss.com
Wed Dec 19 06:22:38 EST 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114160#4114160

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114160



More information about the jboss-user mailing list