<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to set createDate from an Ivy Task</title><link>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task</link><description>&lt;p&gt;How can I set the creation date of an IVY Task?
We are using Ivy system tasks to log some external activities. After such an external activity has been done, the external system calls IVY. IVY creates a system task so we have a perfect case history including all tasks which have been done.&lt;/p&gt;
&lt;p&gt;Right now, the system task has as creation/start-date the current timestamp. How can we set this date to another date (which is may in the past).&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 30 Nov 2016 09:27:54 -0500</lastBuildDate><item><title>Comment by peter_muc on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task#2234</link><description>&lt;p&gt;Ok thanks, in this case we need to think about another solution...restarting the engine for each new system task is not really an option :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">peter_muc</dc:creator><pubDate>Wed, 30 Nov 2016 09:27:54 -0500</pubDate><guid>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task#2234</guid></item><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task#2233</link><description>&lt;p&gt;Yes a restart of the engine is also required. Because task data are cached by the engine and only seldom read from the database. You may get corrupt data if you manipulate the systemDb content while the engine is running.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 30 Nov 2016 08:37:02 -0500</pubDate><guid>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task#2233</guid></item><item><title>Comment by peter_muc on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task#2232</link><description>&lt;p&gt;Thanks for your quick answer.
Yes looks like a hack, but from my perspective it is the only way to document system activities which have been done outside of IVY, isn't it?&lt;/p&gt;
&lt;p&gt;In case we would update the systemDB entries directly, the DB value updates are applied directly or is there something other to do (restart of engine...:) )?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">peter_muc</dc:creator><pubDate>Tue, 29 Nov 2016 14:41:27 -0500</pubDate><guid>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task#2232</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task/2231</link><description>&lt;p&gt;There is no API for that. And it sound like a hack to me. &lt;/p&gt;
&lt;p&gt;But you could change the creation date directly in the SystemDB: &lt;code&gt;iwa_task.startTimestamp&lt;/code&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 29 Nov 2016 11:50:11 -0500</pubDate><guid>https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task/2231</guid></item></channel></rss>