2 Replies Latest reply on Aug 29, 2014 10:02 AM by Kris Verlaenen

    how to deploy java implementations for service tasks to BPM Suite workbench?

    Jianwu Wang Newbie

      My business process has a service task that calls a java function. I implemented my java object for this service task. but I don't know how to deploy it BPM Suite workbench (web portal).

       

      For instance, I found a service implementation at jboss-bpms-brms-6.0.1.GA-redhat-4-src/jbpm/jbpm-examples/src/main/java/org/jbpm/examples/junit/HelloService.java. How can I deploy its compiled code to BPM Suite workbench? Where should the class be copied to? I tried copy the jar directly to my BPM Suite installation directory (jboss-eap-6.1/standalone/deployments/...) from command line. I also tried do it from workbench (Authoring->Artifact Repository->Upload). None of them works.

       

      I got the following error when trying to run a process with a service task and see the following error on console. I'm not sure it is because my service implementation class was not found or general Service Task configuration is wrong.

       

      Please help. Thanks!

       

      15:40:09,781 WARN  [org.drools.persistence.SingleSessionCommandService] (http-localhost/127.0.0.1:8080-4) Could not commit session: org.jbpm.workflow.instance.WorkflowRuntimeException: [ServiceProcess:2 - Hello:2] -- Could not find work item handler for Service Task

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:161) [jbpm-flow-6.0.2-redhat-6.jar:6.0.2-redhat-6]

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337) [jbpm-flow-6.0.2-redhat-6.jar:6.0.2-redhat-6]

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296) [jbpm-flow-6.0.2-redhat-6.jar:6.0.2-redhat-6]

        at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:66) [jbpm-flow-6.0.2-redhat-6.jar:6.0.2-redhat-6]

        at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:43) [jbp