<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Cancel current task</title><link>https://answers.axonivy.com/questions/1685/cancel-current-task</link><description>&lt;p&gt;How to cancel task by method ivy.task.reset();? In Axon Ivy Designer 6.0.1 this method is not working. &lt;/p&gt;
&lt;p&gt;Getting error as follows
State of Task must be one of the following values RESUMED, CREATED, PARKED, READY_FOR_JOIN, FAILED but is ZOMBIE &lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1685/cancel-current-task" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 16 Mar 2016 10:21:28 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1685/cancel-current-task/1686</link><description>&lt;p&gt;I think this error occurs because you are trying to reset a non-persistent task: &lt;a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states"&gt;http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can for the task to be persistent immediately when a user starts a process: See the Start-Element reference &lt;a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy-processmodels-elements-startrequest"&gt;http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy-processmodels-elements-startrequest&lt;/a&gt;
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/persistOnCreation_inscription.png"&gt;
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/startDocExtract.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 16 Mar 2016 10:21:28 -0400</pubDate><guid>https://answers.axonivy.com/questions/1685/cancel-current-task/1686</guid></item></channel></rss>