0 Replies Latest reply on Sep 11, 2012 7:57 AM by Franck cdsosi

    Deploying process questions and WorkItemHandlers...

    Franck cdsosi Newbie

      Hi community,


      I made a process that runs fine locally inside eclipse. Now I want to deploy it so that I can use it remotly for instance with jBPM console. I am using Guvnor to deploy the process.


      I use some activities : SendTask, ServiceTask, ...


      • For Service Task activities I register use the following handler org.jbpm.bpmn2.handler.ServiceTaskHandler associated with name "Service Task".


      => ksession.getWorkItemManager().registerWorkItemHandler("ServiceTask", new ServiceTaskHandler());


      Is there anything particular to do since regarding the use of class org.jbpm.bpmn2.handler.ServiceTaskHandler? I mean is "Service Task" type activity  automatically associated with class when running the process deployed with guvnor?


      • For SendTask activies I register a personal WorkItemHandler (let's say com.sample.workitems.handler.MyPersonalSendTaskHandler) associated with name "Send Task"


      => ksession.getWorkItemManager().registerWorkItemHandler("Send Task", new MyPersonalSendTaskHandler());


      What are the steps to override the handler class used for "Send Task" activities which is a dummy one?


      First question is there a way of overriding since I want to use Service Task in my process and not a personal Service Task?


      Or do I need to define a personal Service Task associated with my handler created as explained is user documentation http://docs.jboss.org/jbpm/v5.3/userguide/ch.domain-specific-processes.html#d0e7113 with Notification workitem?


      Configuration information :

      Using default jBPM 5.3.0Final provided at http://sourceforge.net/projects/jbpm/files