[jboss-user] [jBPM] - Deploying process questions and WorkItemHandlers...

Franck cdsosi do-not-reply at jboss.com
Tue Sep 11 07:57:12 EDT 2012

Franck cdsosi [https://community.jboss.org/people/cdsosi] created the discussion

"Deploying process questions and WorkItemHandlers..."

To view the discussion, visit: https://community.jboss.org/message/758997#758997

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 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 http://sourceforge.net/projects/jbpm/files


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120911/e5ce6c40/attachment.html 

More information about the jboss-user mailing list