This content has been marked as final.
Show 2 replies
-
1. Re: What will happen after cancel a task instance
luowp Sep 1, 2006 3:52 PM (in response to luowp)I try that. If I just cancel the taskinstance, it will go to next node. So I ended the process instance at the same. But the end of process instance does not cancel all task instances.
How could I cancel a taskinstance and stop a process? -
2. Re: What will happen after cancel a task instance
hannes Sep 4, 2006 4:46 AM (in response to luowp)if you delete the ProcessInstance, all tasks connected to this one will be gone.
Or u retrieve the TIs with a similar query like that:// all open tasks private static final String FINDTASKINSTANCES = "select ti " + "from org.jbpm.taskmgmt.exe.TaskInstance as ti " + "where " + " ti.end is null " + " and ti.isCancelled = false";