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&...]