How to reset a task back to state SUSPENDED cancelled by the user
(This question belongs to ivy 5.x)
If a user opens a task (which presents a user dialog to him) and then, a little later he cancels the task (exits from user dialog), xpert.ivy finishes this task and set it's state to DONE. In such a case (after cancelling), the Task should go back to the state SUSPENDED it had before the user started it.
I don't want to delete this task and recreate it, so I tried to reset the task by calling the method ivy.task.reset() in a script element after closing the user dialog, but ivy returns the following error message:
"Session 1 (xyz) is not allowed to call method public void ch.ivyteam.ivy.workflow.internal.Task.reset().
The session does not fulfill the permission rule SESSION OWNS TaskReset PERMISSION OR OWNS TaskReset@SYSTEM PERMISSION"
It's no problem to set this rights by the Administration Console, but it's not useful to set this right to all users created in ivy.
Is there a way to set the appropriate permission within an ivy script element or is there another doing to reset a task?
Thanks