1 Reply Latest reply on Jul 14, 2013 3:26 AM by swiderski.maciej

    Human task in jbpm 5.4

    rekhyt73

      Hi all,

       

      My bpmn2 process has only a single user task. It executes all right in the web designer.

      But when I run it in eclipse, it says "Could not find work item handler for Human Task".

      My ProcessMain code had only the boilerplate stuff until now.

       

      So I copy-pasted this part from the evaluation example:

       

      HornetQHTWorkItemHandler humanTaskHandler = new HornetQHTWorkItemHandler(ksession);

      humanTaskHandler.setIpAddress("127.0.0.1");

      humanTaskHandler.setPort(5153);

      ksession.getWorkItemManager().registerWorkItemHandler("Human Task", humanTaskHandler);

       

      But I now get the following error.

       

      Exception in thread "Thread-4" java.lang.RuntimeException: Timeout : unable to retrieve Task

      ....

      ....

      ....

       

      I would be grateful to anyone who could tell me what more code should I add to get human tasks working in eclipse.

      Thanks.

       

      PS. I am using jBPM 5.4 and ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new WSHumanTaskHandler()); wouldnt work as it is deprecated.

        • 1. Re: Human task in jbpm 5.4
          swiderski.maciej

          when you configure HornetQHTWorkItehHandler and you point to a remote service (127.0.0.1:5153) that you need to ensure that the server on that host and port is up and running. Usually that means you need to start the jbpm on AS7 server and then try to execute the process from eclipse. Alterative you can setup HornetQ task server as part of your eclipse test but that requires bit more work.

           

          HTH