Tihomir Surdilovic [http://community.jboss.org/people/tsurdilovic] created the 
discussion

"Re: How to access a processInstance within a work item"

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

--------------------------------------------------------------
Hi, you can pass the session to the handler and register it. For example:

CustomerServiceTaskHandler handler = new CustomerServiceTaskHandler(ksession, 
......);
ksession.getWorkItemManager().registerWorkItemHandler("myServiceTaskHandler", 
handler);

In the handler then you can invoke methods on the ksession, like in your 
example the signalEvent() method.
Hope this helps.
--------------------------------------------------------------

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

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

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to