星兰 蒋 [
https://community.jboss.org/people/jiang_hoo] created the discussion
"what's the reason that the processinstance can't continue after the
JPA&JTA are used?"
To view the discussion, visit:
https://community.jboss.org/message/780307#780307
--------------------------------------------------------------
Hi JBPM,
In my case,it's a approve process used JBPM5.3! Several days ago,i build a example no
using JPA&JTA.And i could pass a result (just "agree" and
"reject") value to a human task node while a want to complete this task by the
following code.
SyncWSHumanTaskHandler s = new SyncWSHumanTaskHandler();
Map map = new HashMap();
data.put("result", "agree");
ContentData contentData =
ContentMarshallerHelper.marshal(data,s.getMarshallerContext(), null);
sTaskService.complete(taskId, userId, contentData);
and this human task's next node is a diverge gateway, it will used the mvel (like
return result == "reject") to decide which sub switch way to go!Several days ago
it could go easily without using JPA&JTA.
Today ,i add the JPA&JTA in my case.But a WorkflowRuntimeException was caught!
anyone can help me?
org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sogou.ka.contract:1 - Gateway:4]
-- XOR split could not find at least one valid outgoing connection for split Gateway
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:130)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164)
at
org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
at
org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
at
org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
at
org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:239)
at
org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
at
org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:301)
at
org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:277)
at
org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:326)
at
org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:121)
at
org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
at
org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at
org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:367)
at
org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)
at
org.jbpm.task.service.hornetq.CommandBasedHornetQWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedHornetQWSHumanTaskHandler.java:308)
at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)
at
org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56)
at
org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:120)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: XOR split could not find at least one valid
outgoing connection for split Gateway
at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:98)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
... 21 more
48 06/12 16:40:48,122[Thread-14] ERROR service.hornetq.HornetQTaskClientConnector.run -
[com.sogou.ka.contract:1 - Gateway:4] -- XOR split could not find at least one valid
outgoing connection for split Gateway
Thanks and Best Regards!
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/780307#780307]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]