[jboss-user] [JBoss jBPM] - 'Global' transitions

caron@sadalbari.com do-not-reply at jboss.com
Fri Sep 19 02:57:04 EDT 2008


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

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

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



More information about the jboss-user mailing list