org.jbpm.JbpmException: can't leave node 'TaskNode(jbpm$44526)' without leaving transition
at org.jbpm.graph.def.Node.leave(Node.java:460)
at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:213)
at org.jbpm.graph.def.Node.leave(Node.java:438)
at src.gestionWorkflows.WorkflowDefinition.$$Workflow.returnWorkflowEnvironnementByUser($$Workflow.java:391)
at src.gestionWorkflows.WorkflowDefinition.$$Workflow.execute($$Workflow.java:169)
at src.interfaceAltiva.IHM_Principale.jBAddWorkflowsMouseClicked(IHM_Principale.java:232)
at src.interfaceAltiva.IHM_Principale.access$0(IHM_Principale.java:207)
at src.interfaceAltiva.IHM_Principale$1.mouseClicked(IHM_Principale.java:80)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
ProcessDefinition processDef = new ProcessDefinition("jbpm$44598");
…
ProcessInstance process = new ProcessInstance(processDef);
List list = process.findAllTokens();
System.out.println("Size liste token : " + list.size());
System.out.println(list.get(0));
Token token = new Token(process);
ExecutionContext exec = new ExecutionContext(token) ;
taskNode.leave(exec);
<task-node name="Devis Signé">
<task name="mywf:DevisSigne" swimlane="admin" />
<event type="node-enter">
<action name="action" class="src.gestionWorkflows.ActionHandler.MessageActionHandler">
</action>
</event>
<transition to="Bon de Livraison" name="toAcompteL"></transition>
</task-node>
ProcessDefinition processDef = new ProcessDefinition("jbpm$44598");
WorkflowTaskQuery query = new WorkflowTaskQuery();
query.setActive(null);
List<WorkflowTask> tasks =workflowService.queryTasks(query);
workflowService.endTask(tasks.get(f).id, null);
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.