2 Replies Latest reply on Feb 2, 2011 7:36 AM by Mauricio Salatino

    WorkItemHandler with jbpm-console

    tomathome Newbie



      how to add selfe wrote WorkItemHandler to the prozess-engine started by jbpm-console?

        • 1. WorkItemHandler with jbpm-console
          tomathome Newbie

          So, I answer my question for selfe again 


          small instruction how to use selfe created WorkItemHandler in the jbpm-console.

          - unzip content of jbpm-installer/jboss-4.2.3.GA/server/default/deploy/jbpm-gwt-console-server.war into jbpm-installer/jboss-4.2.3.GA/server/default/deploy/jbpm-gwt-console-server.war directory

          - edit jbpm-installer/jboss-4.2.3.GA/server/default/deploy/jbpm-gwt-console-server.war/WEB-INF/classes/META-INF/CustomWorkItemHandlers.conf file



            "Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),

            "myhandler": new de.processes.jbpm5.MyNewHandler(),



          - copy your .jar library containing the 'de.processes.jbpm5.MyNewHandler()' class file into jbpm-installer/jboss-4.2.3.GA/server/default/deploy/jbpm-gwt-console-server.war/WEB-INF/lib/


          Now you can create new bpmn process file containing:


          <task id="_4" name="Task using my Handler" tns:taskName="myhandler" >





          I hope somebody find this hint usefull.

          • 2. WorkItemHandler with jbpm-console
            Mauricio Salatino Master

            Great! probably somebody will find it really useful! Thanks for sharing!