[jboss-user] [jBPM] - Re: Exposing WorkItemHandler as an EJB (3.1) and referencing that work item handler from the BPMN process definition

Maciej Swiderski do-not-reply at jboss.com
Tue Jul 16 02:09:24 EDT 2013


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Exposing WorkItemHandler as an EJB (3.1) and referencing that work item handler from the BPMN process definition"

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

--------------------------------------------------------------
Lukasz, the common way for including custom work item handlers for jbpm/brms in version 5 is to place the libs into the jbpm-console-server/business-central-server war, inside WEB-INF/lib so the jbpm runtime engine can find it. Then you need to register them on the ksession and that is again done via files bundled in the *-server.war. Inside WEB-INF/classes/META-INF folder you should find CustomWorkItemHandlers.conf file, you need to add your custom work item handler there in following form:

"NAME OF THE WORK ITEM": new FullyQualifiedClassName()

if there are any entires already defined just add them as next element of the array. This is MVEL file and you should be able to use ksession as constructor argument if you need access to ksession inside your work item handler.

HTH
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20130716/4f1330a9/attachment.html 


More information about the jboss-user mailing list