<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Save Task data while in task</title><link>https://answers.axonivy.com/questions/1017/save-task-data-while-in-task</link><description>&lt;p&gt;How can I save data while I'm in a Task Switch.&lt;/p&gt;
&lt;p&gt;I'm resuming a Task and want to save data after submitting each form/page. If the user session expires or the user cancels the task the data should load when the user resumes the task the next time.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1017/save-task-data-while-in-task" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 18 Dec 2019 02:10:34 -0500</lastBuildDate><item><title>Answer by Lukas Lieb</title><link>https://answers.axonivy.com/questions/1017/save-task-data-while-in-task/4286</link><description>&lt;p&gt;This is no longer possible, if you want to do similar you can use businessdata: &lt;a href="https://answers.axonivy.com/questions/4239/park-task-not-saving-data"&gt;https://answers.axonivy.com/questions/4239/park-task-not-saving-data&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lukas Lieb</dc:creator><pubDate>Wed, 18 Dec 2019 02:10:34 -0500</pubDate><guid>https://answers.axonivy.com/questions/1017/save-task-data-while-in-task/4286</guid></item><item><title>Comment by HaraldWeber on roland's answer</title><link>https://answers.axonivy.com/questions/1017/save-task-data-while-in-task#1030</link><description>&lt;p&gt;Thanks for the answer.
I solved the problem by serializing the task data and save it into a binary database column. Its exactly the same prcedure an ivy task uses.
I have to create the "my task data" before the first taskswitch element to save the id to the "ivy task data". The Ivy task now stores the id to the actual task data. I also have to load "my task data" manually if a task is resumed.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">HaraldWeber</dc:creator><pubDate>Mon, 10 Nov 2014 11:52:31 -0500</pubDate><guid>https://answers.axonivy.com/questions/1017/save-task-data-while-in-task#1030</guid></item><item><title>Answer by roland</title><link>https://answers.axonivy.com/questions/1017/save-task-data-while-in-task/1029</link><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm not sure if this helps you completly.
You can set the Task to state "PARK" this saves the data and the Task is still existing.
But this helps only if the user presses a button "PARK" which is calling this event.&lt;/p&gt;
&lt;p&gt;I think if you want to have all data saved which are entered in a form you have to save them in a database.&lt;/p&gt;
&lt;p&gt;May be following helps:
Loading Ivy Default data as now when starting the form.
After every Change in the form write the data into a DB Table.
if the dialog is started a second time just look at the database if there is a entry for this Case/Task and override the data loaded from ivy System db.
After finishing or canceling the task regular i would delete the db entry.&lt;/p&gt;
&lt;p&gt;maybe this could help.&lt;/p&gt;
&lt;p&gt;Roland&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">roland</dc:creator><pubDate>Sat, 08 Nov 2014 07:58:30 -0500</pubDate><guid>https://answers.axonivy.com/questions/1017/save-task-data-while-in-task/1029</guid></item></channel></rss>