Currently in JBPM the options to cancel a process are
1. By calling deleteProcessInstance() API which takes in a process instance id. But this deletes all the information regarding the process from the database.
2. The other option would be to have transition names for cancel in the entire process definition. But then it wouldn?t work for the existing processes in the system(as the process definition needs to be deployed again)
Is there any other solution for the same?
You can try "suspend" in case if you want to visit this sometime later.