Questions Tagged With persistencehttps://answers.axonivy.com/tags/persistence/?type=rss&user=Genzer%20Hawkerquestions tagged <span class="tag">persistence</span>enFri, 29 Apr 2016 05:40:29 -0400Why does Axon.ivy persist an ICase when `setAdditionalProperty` is invoked even if there is no TaskSwitch element?https://answers.axonivy.com/questions/1755/why-does-axon-ivy-persist-an-icase-when-setadditionalproperty-is-invoked-even-if-there-is-no-taskswitch-element<p>There written in the <a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states">public document</a>:</p> <blockquote> <p>Normally, a case is started non persistent. This means it is stored in memory only. As soon as the process hits a task switch the case and its tasks will be made persistent by storing them to the system database.</p> </blockquote> <p>I just found out that you can make an ICase persisted without any TaskSwitch element in the process by setting an <code>additionalProperty</code>.</p> <p>As soon as the line of code is evaluated:</p> <pre><code>ivy.case.setAdditionalProperty("anything-will-do", "some-value"); </code></pre> <p>The <code>ICase</code> will be persisted <em>immediately</em>.</p> <p>Is this a non-public behaviour or a bug in the API?</p> <p>P.S: there is a demo project to demonstrate this behaviour at <a href="https://www.mediafire.com/?hxi3z0v27dhjxh4">https://www.mediafire.com/?hxi3z0v27dhjxh4</a></p>Genzer HawkerFri, 29 Apr 2016 05:40:29 -0400https://answers.axonivy.com/questions/1755/why-does-axon-ivy-persist-an-icase-when-setadditionalproperty-is-invoked-even-if-there-is-no-taskswitch-elementcaseadditional-propertypersistenceworkflow