This content has been marked as final.
Show 1 reply
-
1. Re: How to remove a task instance?
arnoldh Feb 3, 2008 9:31 PM (in response to arnoldh)I have just read the source code of TaskInstance.java, it seems the method "markAsCancelled()" will work, but unfortunately it is privte.
and then I found the code below should work:
taskInstance.setSignalling(false);
taskInstance.cancel();
as the "isSignalling" instance varialble is set to false, the task instance will keep silence and the token will not transit to other nodes, that should be the same effect as removing the task instance, I think.