[jboss-user] [jBPM] - Re: Process Instance Variable within WorkItemHandler

Francesco Pietrobelli do-not-reply at jboss.com
Wed Jun 8 10:35:19 EDT 2011


Francesco Pietrobelli [http://community.jboss.org/people/francesco.pietrobelli] created the discussion

"Re: Process Instance Variable within WorkItemHandler"

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

--------------------------------------------------------------
I think that you can pass the StatefulKnowledgeSession to a constructor of your custom WorkItemHandler and then in executeWorkItem(WorkItem i,WorkItemManager m) method calls:
 ksession.getProcessInstance(i.getProcessInstanceId());

Hope this is helpful.
--------------------------------------------------------------

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

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/20110608/d18d8551/attachment.html 


More information about the jboss-user mailing list