<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Pause a task, set status to suspended</title><link>https://answers.axonivy.com/questions/784/pause-a-task-set-status-to-suspended</link><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;is it possible as a workflow user to pause or suspend a task? In this case the workflow user wants to resume his task on the next day.&lt;/p&gt;
&lt;p&gt;I've seen that it is possible when the workflow user opens his task and let the session of his web browser time out. But is there a way to achieve this without this mentioned time out?&lt;/p&gt;
&lt;p&gt;Thanks in advance for your support and this great forum.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/784/pause-a-task-set-status-to-suspended" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 13 Jun 2014 12:18:32 -0400</lastBuildDate><item><title>Answer by danielf</title><link>https://answers.axonivy.com/questions/784/pause-a-task-set-status-to-suspended/788</link><description>&lt;p&gt;Thanks for the quick answer. Yes I do work with the Xpert.ivy Desinger &amp;gt; 5.0 in fact 5.0.9.
I've implemented this so far.&lt;/p&gt;
&lt;p&gt;But I get an IllegalStateException - the Business Process does not like the suspended state of my task.&lt;/p&gt;
&lt;p&gt;My Business Process created an Task. The User in the JSF HTML Dialog calls my pause event via commandButton. Afterwards ivy.task.reset() is executed inside the HTML User Dialog Logic. When my Business Process hits the Process End Element the Exception pops up. But the behavior is correct as the Task has the state suspended.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">danielf</dc:creator><pubDate>Fri, 13 Jun 2014 12:18:32 -0400</pubDate><guid>https://answers.axonivy.com/questions/784/pause-a-task-set-status-to-suspended/788</guid></item><item><title>Answer by Stefan</title><link>https://answers.axonivy.com/questions/784/pause-a-task-set-status-to-suspended/785</link><description>&lt;p&gt;I guess that you're working with ivy 5.x?&lt;/p&gt;
&lt;p&gt;To suspend a task a user is currently working on, set it back by calling 
=&amp;gt; ivy.task.reset();
in a Script Step after user cancels the task (e.g by a cancel button in a form)&lt;/p&gt;
&lt;p&gt;Be sure, that the user who owns this task has the appropriate permission to call this method. 
=&amp;gt; ivy.wf.getApplication().getSecurityDescriptor().grantPermission(IPermission.TASK_RESET,&amp;lt;irole user="" owns=""&amp;gt;);
Call this by an System Admin to grant the permission to the role this user owns.&lt;/p&gt;
&lt;p&gt;Now the task is going back to it's suspended state.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan</dc:creator><pubDate>Thu, 12 Jun 2014 18:41:20 -0400</pubDate><guid>https://answers.axonivy.com/questions/784/pause-a-task-set-status-to-suspended/785</guid></item></channel></rss>