JBoss Community

Re: jBPM5 - How to abort a already running ProcessInstance?

created by scurvo in jBPM - View the full discussion

What i do is i create a Service Task like this:

 

ksession.getWorkItemManager().registerWorkItemHandler("Service Task", new ServiceTaskHandler());

ProcessInstance pi = ksession.startProcess(....)

 

And i try to abort the process like this:

 

ksession.abortProcessInstance(pi.getId());

 

But it continues to execute the so called Service Task...

Can show me how to abort this service task also?

Reply to this message by going to Community

Start a new discussion in jBPM at Community