JBoss Community

Re: Process Instance Variable within WorkItemHandler

created by Francesco Pietrobelli in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community