I want to create a new workflow with a start node and two task (task_1 and 
task2).
I can start the workflow without problem but when I do a endWorkItem on the 
first task (task_1), the process don't start the follow task (task_2).

The definition of the process is :

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="sample">
   <swimlane name="ernie">
      <assignment expression="user(ernie)"></assignment>
   </swimlane>

   <start-state name="Node_0">
      <event type="node-enter">
         <action 
class="org.nuxeo.ecm.platform.workflow.jbpm.handlers.EnterNodeActionHandler"/>
      </event>
      <task name="start" swimlane="ernie"></task>
      <transition name="" to="Node_1"></transition>
   </start-state>

   <task-node name="Node_1" create-tasks="false">
      <event type="node-enter">
         <action 
class="org.nuxeo.ecm.platform.workflow.jbpm.handlers.EnterNodeActionHandler"/>
      </event>
      <task name="task_1" swimlane="ernie"></task>
      <transition name="" to="Node_2"></transition>
   </task-node>

   <task-node name="Node_2" create-tasks="false">
      <event type="node-enter">
         <action 
class="org.nuxeo.ecm.platform.workflow.jbpm.handlers.EnterNodeActionHandler"/>
      </event>
      <task name="task_2" swimlane="ernie">
          </task>
      <transition name="" to="end"></transition>
   </task-node>

   <end-state name="end"></end-state>   
</process-definition>

And the result of (startProcess and endWorkItem) is : 

-------- Start sample --------
Process [sample] is started
State = CREATED
    N°  / name  [start : stop]
    3 / start [null : null] 
State = STARTED
    N°  / name  [start : stop]
    4 / task_1 [2007-07-10 15:29:20.412 : null] 
-------- End Task 4 ---------
State = CREATED
    N°  / name  [start : stop]
    3 / start [null : null] 
State = CLOSED
    N°  / name  [start : stop]
    4 / task_1 [2007-07-10 15:29:20.412 : 2007-07-10 15:29:20.848] 


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to