2 Replies Latest reply on Jan 19, 2006 5:42 AM by lisaanm

    Problem with Delete/Cancel TaskInstance

    lisaanm

      Hi.,
      I want to DELETE/CANCEL a taskinstance, so that the whole workflow process should come to end or should not exist anymore. I tried the following ways:
      1. taskInstance.getTaskMgmtInstance().getProcessInstance().end()
      2. taskInstance.getTaskMgmtInstance().removeTaskInstance (TaskInstance)
      3. taskInstance.setEnd(new Date())

      But the problem is, if i use getTaskList() then i'm getting the ended TaskInstances.

      Which is the correct way to Delete/Cancel ?

      Any help is appreciated.

      Thanks.