1 Reply Latest reply on Nov 11, 2013 10:14 AM by dward

    Bpm-WorkItemHandlers Problem

    d.synchronized

      Hi 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

        • 1. Re: Bpm-WorkItemHandlers Problem
          dward

          Again I need to ask what version of the SwitchYard tooling editor are you using, PLUS what version of the SwitchYard runtime you are using.  You should not have to register the SwitchYard Service Task handler yourself - the runtime has long since done that for you.

           

          Also, looks like you have jbpm-flow-5.3.0.Final in there, mixed with drools-core-5.4.0.Final.  Why 2 different versions?  But more importantly, are you purposely changing out the Drools/jBPM version?  Because SwitchYard 1.0.0.Final shipped with KIE/Drools/jBPM 6.0.0.Beta4...