07-24-2012 03:38 AM
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");07-25-2012 03:22 AM
  WorkflowTaskQuery query = new WorkflowTaskQuery();
     query.setActive(null);
           
    List<WorkflowTask> tasks =workflowService.queryTasks(query);workflowService.endTask(tasks.get(f).id, null);    
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.