JBoss Community

How to signal event inside WorkItemHandler implementation in jBPM5

created by Nick Tan in jBPM - View the full discussion

hi, folks

 

i'm now trying to signalEvent inside a custom WorkItemHandler implementation, so that the business process can catch this event, and deal with it correspondingly.

 

i implemented the method executeWorkItem(WorkItem, WorkItemManager)

and i think to signal event, first need to get the instance of ProcessInstance, or ksession, but failed to find a way out.

 

someone might said that, why not inject the ksession within the constructor. OK, but i think while registering the handler in jbpm-console, it only recognize the default constructor, right?

 

any suggestion?

thanks

 

--

Nick

Reply to this message by going to Community

Start a new discussion in jBPM at Community