[jboss-user] [jBPM Users] - Re: End tasks in a Fork

saraswati.santanu do-not-reply at jboss.com
Thu Nov 19 22:54:08 EST 2009


Hi Alla,
   I am not able to reproduce the problem. This is Jpdl I executed:


  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition  xmlns=""  name="parallel.two.sequential.one">
  | 	
  | 	<swimlane name="alla" />
  | 	
  | 	<start-state name="start">
  | 		<transition to="fork1"></transition>
  | 	</start-state>
  | 
  | 	<fork name="fork1">
  | 		<transition to="task-node1" name="to-task-1"></transition>
  | 		<transition to="task-node2" name="to-task-2"></transition>
  | 	</fork>
  | 
  | 	<task-node name="task-node1" >
  | 		<task name="Task 1" swimlane="alla">
  | 		</task>
  | 		<transition to="join1" name="to-the-end"></transition>
  | 	</task-node>
  | 	
  | 	<task-node name="task-node2">
  | 		<task name="Task 2" swimlane="alla">
  | 		</task>
  | 		<transition to="join1" name="to-the-end"></transition>
  | 	</task-node>
  | 	
  | 	<join name="join1">
  | 		<transition to="end"></transition>
  | 	</join>
  | 
  | 	<end-state name="end"></end-state>
  | </process-definition>
  | 

And after execution of task1 when I ask for the current unfinished tasks I get task2 only. Below is the log I am getting:

09:12:55,546 DEBUG GraphElement:170 - event 'task-end' on 'Task(Task 1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG GraphElement:170 - event 'task-end' on 'Task(Task 1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG TaskInstance:484 - completion of task 'Task 1' results in taking the default transition
09:12:55,546 DEBUG TaskInstance:484 - completion of task 'Task 1' results in taking the default transition
09:12:55,546 DEBUG GraphElement:170 - event 'before-signal' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG GraphElement:170 - event 'before-signal' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG GraphElement:170 - event 'node-leave' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG GraphElement:170 - event 'node-leave' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG GraphElement:170 - event 'transition' on 'Transition(to-the-end)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG GraphElement:170 - event 'transition' on 'Transition(to-the-end)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG GraphElement:170 - event 'node-enter' on 'Join(join1)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG GraphElement:170 - event 'node-enter' on 'Join(join1)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG Join:115 - forcing version increment on parent token Token(/)
09:12:55,562 DEBUG Join:115 - forcing version increment on parent token Token(/)
Hibernate: update JBPM_TOKEN set VERSION_=? where ID_=? and VERSION_=?
09:12:55,578 DEBUG Join:206 - join will not yet reactivate parent: found concurrent token 'Token(/to-task-2)'
09:12:55,578 DEBUG Join:206 - join will not yet reactivate parent: found concurrent token 'Token(/to-task-2)'
09:12:55,578 DEBUG GraphElement:170 - event 'after-signal' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,578 DEBUG GraphElement:170 - event 'after-signal' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'

I see nothing abnormal there as well.


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

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



More information about the jboss-user mailing list