Questions Tagged With taskhttps://answers.axonivy.com/tags/task/?type=rss&user=Stefan%20Kressigquestions tagged <span class="tag">task</span>enWed, 23 Apr 2014 23:07:42 -0400How to reset a task back to state SUSPENDED cancelled by the userhttps://answers.axonivy.com/questions/649/how-to-reset-a-task-back-to-state-suspended-cancelled-by-the-user<p>(This question belongs to ivy 5.x)</p> <p>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.</p> <p>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:</p> <p>"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"</p> <p>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?</p> <p>Thanks</p>Stefan KressigWed, 23 Apr 2014 23:07:42 -0400https://answers.axonivy.com/questions/649/how-to-reset-a-task-back-to-state-suspended-cancelled-by-the-usersecuritytask