2 Replies Latest reply on Sep 4, 2006 4:46 AM by hannes

    What will happen after cancel a task instance

    luowp

      Hi I just want to know what will happen after I call taskinstance.cancel.

      What the status of the process? Is the token stop here for ever or it goes to next node automatically?

      Thanks!

        • 1. Re: What will happen after cancel a task instance
          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

            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";