0 Replies Latest reply on Jul 17, 2009 8:09 AM by xco

    Howto cancel a taskinstance

    xco

      Hi,

      I am facing in jbpm 3.3.1 an issue with the cancelling of a taskinstance.

      taskInstance.cancel()

      seems to cancel the taskinstance but also does a end() of the taskinstance which causes the default transition to be taken.

      This behavior does not match what is written in the javadoc.

      What I like is cancel a task and not to initiate the continuation of the flow. How can I achieve this?

      My workaround is to set the end date manually on the taskinstance but I can not set the isOpen flag to false. So I don't trust the coherence of the workaround.

      Thanks,