Cancel a process instance using Bonita Engine API
I want cancel a process instance when I press a button of a Form, I use the Engine API
ProcessAPI processAPI = apiAccessor.getProcessAPI();
I get an Null pointer Exception
I think you're missing the bit that says
You've got the api now you need to cancel the actual instance of the process :)
Good hunting, off to catch a plane...can't do any more today.
Which version of Bonita BPM are you using?
Do you want the user to be able to cancel the process instance at a specific point in process execution or at anytime?