Questions asked by Stefan Kressighttps://answers.axonivy.com/questions/asked-by/57/stefan-kressig/?type=rssQuestions asked by <a href="/users/57/stefan-kressig" >Stefan Kressig</a>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-usersecuritytaskHow to use process data in a if in a JSP file?https://answers.axonivy.com/questions/480/how-to-use-process-data-in-a-if-in-a-jsp-file<p>How can we use the value of the process data (e.g. in.umxm) in a JSP?</p> <pre><code>if (%&gt; &lt;%= ivy.html.get("in.umxm")%&gt; &lt;%) {%&gt;&lt;br/&gt; A&lt;br/&gt; &lt;%} else {%&gt;&lt;br/&gt; B&lt;br/&gt; &lt;%}%&gt; </code></pre>Stefan KressigThu, 03 Oct 2013 05:31:44 -0400https://answers.axonivy.com/questions/480/how-to-use-process-data-in-a-if-in-a-jsp-filejsphtmlwebpages