[jboss-user] [jBPM] - Re: Extending standard components and overriding standard WorkItemHandlers?

Mauricio Salatino do-not-reply at jboss.com
Mon Aug 29 09:15:01 EDT 2011


Mauricio Salatino [http://community.jboss.org/people/salaboy21] created the discussion

"Re: Extending standard components and overriding standard WorkItemHandlers?"

To view the discussion, visit: http://community.jboss.org/message/623486#623486

--------------------------------------------------------------
If you take a look at the official documentation you will find a section that is called Domain Specific Activities or something similar. That section explains how to create your own work item handlers. Because workItemHandlers are just classes that implements an interface you can extend them if you need that. 
Once you get your handler implementation you can register it to the session using ksession.getWorkItemManager().registerWorkItemHandler("<id>", instance);

In your processes you can use the Task node to hook up the workitemHandlers that will be used in runtime:
<task id="_1" tns:name=[id]/>

Notice that the [id] is the same as you register in the workItemManager.
Cheers
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/623486#623486]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

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


More information about the jboss-user mailing list