8 Replies Latest reply on Apr 9, 2008 10:42 AM by Ronald van Kuijk

    taskInstance.cancel() still fires events

    David Roberts Apprentice

      Hi,

      When I call taskInstance.cancel(), it still fires any task-end events etc.
      When cancelling a task instance, I would assume that any task instance events should not be fired. But I see in the code that the cancel() method still calls end(), which in turn fires the events.

      I dont want these events to be fired if I cancel a task instance.
      Is there any way I can stop these events from being fired when cancelling? Perhaps temporarily remove events for that task instance before calling cancel() ?

      Any ideas?