<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to save/retrieve data model variables in script or service tasks? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-save-retrieve-data-model-variables-in-script-or-service/m-p/41554#M17430</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;We're currently trying to save some data in an external database using data models. We've been successful in doing so with a simple form and Store entity task.&lt;/P&gt;&lt;P&gt;However, our use case is a bit more complex - the process requests calculation results from an external source through REST and we want to store the response of this request in a data model (instance? variable?) instead of a process variable. This way we could keep using the store task mapping the variables (doing so like resultJson.prop1, resultJson.prop2)&lt;/P&gt;&lt;P&gt;Is there a way to achieve this?&lt;/P&gt;&lt;P&gt;We also noticed that after a store task, the data model variable .getEntity() returns null - is that expected?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 16:47:04 GMT</pubDate>
    <dc:creator>mathewsmotta</dc:creator>
    <dc:date>2020-07-28T16:47:04Z</dc:date>
    <item>
      <title>How to save/retrieve data model variables in script or service tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-save-retrieve-data-model-variables-in-script-or-service/m-p/41554#M17430</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;We're currently trying to save some data in an external database using data models. We've been successful in doing so with a simple form and Store entity task.&lt;/P&gt;&lt;P&gt;However, our use case is a bit more complex - the process requests calculation results from an external source through REST and we want to store the response of this request in a data model (instance? variable?) instead of a process variable. This way we could keep using the store task mapping the variables (doing so like resultJson.prop1, resultJson.prop2)&lt;/P&gt;&lt;P&gt;Is there a way to achieve this?&lt;/P&gt;&lt;P&gt;We also noticed that after a store task, the data model variable .getEntity() returns null - is that expected?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:47:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-save-retrieve-data-model-variables-in-script-or-service/m-p/41554#M17430</guid>
      <dc:creator>mathewsmotta</dc:creator>
      <dc:date>2020-07-28T16:47:04Z</dc:date>
    </item>
  </channel>
</rss>

