0 Replies Latest reply on May 14, 2011 11:42 PM by Nick Tan

    How to signal event inside WorkItemHandler implementation in jBPM5

    Nick Tan Newbie

      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