Try JbpmContext.getGraphSession().deleteProcessInstance(). It will take care of everything. Variables, task instances, subprocess instances and logs. Make sure you use a recent version of jBPM. In earlier versions some corner cases were not covered.
Deleting a process instance is a rather complex operation. You'd be better off scheduling a periodic task which queried for and deleted ended process instances. Otherwise the deletion will disrupt your online operation. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238630#4238630 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238630 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
