How can I end a suspended task? In IWorkflowSession there is a mehtod:

public abstract void endWorkingTask(ITask paramITask, String paramString1, String paramString2, String paramString3, boolean paramBoolean)
    throws PersistencyException;

But its undocumented.

Or is it better to call ITask.destroy()?

asked 12.01.2015 at 14:45

HaraldWeber's gravatar image

HaraldWeber
101101015
accept rate: 33%


The method endWorkingTask(...) of IWorkflowSession is not public API and should not be used. It is reserved for ivy internal only.

The method destroy() of ITask can be used. It will destroy the task which means:

  • The task is canceled/aborted
  • No user can work on the task later.
  • If this is the last running task of a case then the case is also destroyed.
  • If other tasks are tried to join on a task element with the task you have destroyed then the tasks will never be joined. This means the case will never end.

If you want to cancel the whole process instance (case) then you should use the method destroy of ICase.

link

answered 12.01.2015 at 15:37

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k172655
accept rate: 74%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×63

Asked: 12.01.2015 at 14:45

Seen: 1,875 times

Last updated: 12.01.2015 at 15:37