JBoss Community

Re: Asynchronous service tasks and transactions

created by Maciej Swiderski in jBPM - View the full discussion

when instantiating your handler ensure that it will get access to knowledge session:

 

new YouHandlerImpl(ksession)

 

and then inside you handler, when it's done with processing use session to complete work item:

 

session.getWorkItemManager().completeWorkItem(workItemId, result);

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community