Bpm-WorkItemHandlers Problem
d.synchronized Nov 9, 2013 4:43 PMHi fellas,
While i was trying to reference another service from within bpmn,the error asked me to register a WorkItemHandler for referencing the service,
I implemented the WorkItemHandler interface and created and succesfully added the handler into the sy.xml,but When i run the test ,i found that my workItemHandler was not registered may be,So i was getting the error as follows
21:21:54,012 ERROR [org.apache.camel.processor.DefaultErrorHandler] (http-localhost-127.0.0.1-8080-1) Failed delivery for (MessageId: ID-TBS15-60117-1384030557220-13-1 on ExchangeId: ID-TBS15-60117-1384030557220-13-2). Exhausted after delivery attempt: 1 caught: org.jbpm.workflow.instance.WorkflowRuntimeException: [WithdrawMoneyWorkflow:1 - AtmPinCheck:4] -- Could not find work item handler for SwitchYard Service Task: org.jbpm.workflow.instance.WorkflowRuntimeException: [WithdrawMoneyWorkflow:1 - AtmPinCheck:4] -- Could not find work item handler for SwitchYard Service Task
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:130) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
Caused by: org.drools.WorkItemHandlerNotFoundException: Could not find work item handler for SwitchYard Service Task
at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:71) [drools-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) [jbpm-flow-5.3.0.Final.jar:5.3.0.Final]
... 99 more
But When i try to register the taskHandlers instead of the workItemHandlers in the sy.xml i was able to call my reference Services,Can somebody please explainn me the the underlying reason?
Thanks and Regards
d.synchronized