1 Reply Latest reply on May 10, 2012 10:51 AM by tcharman

    Deploying a custom workitemhandler into demo

    Dan Daugherty Newbie

      I'm trying to wrap my head around the process for developing integrations with jbpm and I can't seem to find a way to associate a java class with the wid file without having to bootstrap the jbpm engine and add the reference using a ksession.getWorkItemManager().registerWorkItemHandler("SetAttribute", new SetAttributeComponent()); call.

      Is there a way for me to deploy the process I have with the custom workitemhandler to the repository, add the jar to the classpath and make the association without having to manually start the process in code?

        • 1. Re: Deploying a custom workitemhandler into demo

          Hi Dan


          You could try using a drools.session.conf file, in which you put something like this:

          drools.workItemHandlers = CustomWorkItemHandlers.conf


          Then in CustomWorkItemHandlers.conf you put in entries:


                    "Task1": new com.xyz.TaskHandler1(),

                    "Task2": new com.xyz.TaskHandler2()



          jBPM picks up these definitions and adds them itself without having to do so programatically.