Jing Zhang [
http://community.jboss.org/people/zhangjing2000] created the discussion
"Re: A question about rule task in jBPM5"
To view the discussion, visit:
http://community.jboss.org/message/592276#592276
--------------------------------------------------------------
Here is the log I got from Eclipse printout.
ACTIVATION CREATED rule:MyRule activationId:MyRule [0] declarations: ruleflow-group:
myRules
BEFORE RULEFLOW STARTED process:Simple Process Test[id=SimpleProcessTest]
BEFORE RULEFLOW NODE TRIGGERED node:StartProcess[id=1] process:Simple Process
Test[id=SimpleProcessTest]
null process:Simple Process Test[id=SimpleProcessTest]
BEFORE RULEFLOW NODE TRIGGERED node:Task 1[id=2] process:Simple Process
Test[id=SimpleProcessTest]
execute work item org.drools.persistence.jpa.processinstance.JPAWorkItemManager@1b9ef36
AFTER RULEFLOW NODE TRIGGERED node:Task 1[id=2] process:Simple Process
Test[id=SimpleProcessTest]
null process:Simple Process Test[id=SimpleProcessTest]
AFTER RULEFLOW NODE TRIGGERED node:StartProcess[id=1] process:Simple Process
Test[id=SimpleProcessTest]
AFTER RULEFLOW STARTED process:Simple Process Test[id=SimpleProcessTest]
ACTIVATION CREATED rule:MyRule activationId:MyRule [0] declarations: ruleflow-group:
myRules
Completing the first Activity !
complete work item 1
null process:Simple Process Test[id=SimpleProcessTest]
BEFORE RULEFLOW NODE TRIGGERED node:rule node[id=3] process:Simple Process
Test[id=SimpleProcessTest]
BEFORE RULEFLOW GROUP ACTIVATED group:myRules[size=1]
AFTER RULEFLOW GROUP ACTIVATED group:myRules[size=1]
AFTER RULEFLOW NODE TRIGGERED node:rule node[id=3] process:Simple Process
Test[id=SimpleProcessTest]
null process:Simple Process Test[id=SimpleProcessTest]
BEFORE ACTIVATION FIRED rule:MyRule activationId:MyRule [0] declarations: ruleflow-group:
myRules
my rules executed!
AFTER ACTIVATION FIRED rule:MyRule activationId:MyRule [0] declarations: ruleflow-group:
myRules
BEFORE RULEFLOW GROUP DEACTIVATED group:myRules[size=0]
AFTER RULEFLOW GROUP DEACTIVATED group:myRules[size=0]
null process:Simple Process Test[id=SimpleProcessTest]
BEFORE RULEFLOW NODE TRIGGERED node:Task 2[id=4] process:Simple Process
Test[id=SimpleProcessTest]
Exception in thread "Thread-12" org.drools.RuntimeDroolsException: Unexpected
exception executing action
org.jbpm.process.instance.event.DefaultSignalManager$SignalAction@1b9da92
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1000)
at org.drools.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1044)
at
org.drools.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:780)
at
org.drools.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:756)
at
org.drools.command.runtime.rule.FireUntilHaltCommand$1.run(FireUntilHaltCommand.java:50)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at
org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:43)
at
org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:101)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
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.RuleSetNodeInstance.signalEvent(RuleSetNodeInstance.java:73)
at
org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:339)
at
org.jbpm.process.instance.event.DefaultSignalManager.internalSignalEvent(DefaultSignalManager.java:80)
at
org.jbpm.process.instance.event.DefaultSignalManager$SignalAction.execute(DefaultSignalManager.java:175)
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:998)
... 5 more
Completing the second Activity
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/592276#592276]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]