<?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 Storing Variables to a different database in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/storing-variables-to-a-different-database/m-p/32817#M13886</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am new to Alfresco and i need to know how to store the variables (as in ACT_HI_VARINST) to a different database in real time scenario.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me in this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guru&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 12:52:55 GMT</pubDate>
    <dc:creator>Guru</dc:creator>
    <dc:date>2022-09-08T12:52:55Z</dc:date>
    <item>
      <title>Storing Variables to a different database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/storing-variables-to-a-different-database/m-p/32817#M13886</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am new to Alfresco and i need to know how to store the variables (as in ACT_HI_VARINST) to a different database in real time scenario.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me in this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guru&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 12:52:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/storing-variables-to-a-different-database/m-p/32817#M13886</guid>
      <dc:creator>Guru</dc:creator>
      <dc:date>2022-09-08T12:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Variables to a different database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/storing-variables-to-a-different-database/m-p/32818#M13887</link>
      <description>&lt;P&gt;I think that you can implement this behavior in different ways in APS:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Adding a custom REST Task for callling an external service via REST: &lt;A href="https://docs.alfresco.com/process-services/latest/using/process/bpmn/#rest-call-task" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/process-services/latest/using/process/bpmn/#rest-call-task&lt;/A&gt;. Your external service will be called with a POST call and a JSON body in the request where your service will get values to store on a different data source (MongoDB, other DBMS, file system and so on)&lt;/LI&gt;
&lt;LI&gt;Using Custom Data Models:&amp;nbsp;&lt;A href="https://docs.alfresco.com/process-services/1.9/develop/dev-ext/#custom-data-models" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/process-services/1.9/develop/dev-ext/#custom-data-models&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Implementing your own Service Task as a Java Delegate with your own DAO classes, and here I suggest to use the Spring Framework using Spring Data or Spring JdbcTemplate:&amp;nbsp;&lt;A href="https://docs.alfresco.com/process-services/latest/develop/dev-ext/#custom-logic" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/process-services/latest/develop/dev-ext/#custom-logic&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Implementing a Task Execution Listener attached to the end event for example with a similar implementation of the Service Task&lt;/LI&gt;
&lt;LI&gt;Remember that, if you are using a recent version, you can disable the persistence of some variables in the Activiti database:&amp;nbsp;&lt;A href="https://docs.alfresco.com/process-services/latest/using/process/persistence/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/process-services/latest/using/process/persistence/&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 12:45:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/storing-variables-to-a-different-database/m-p/32818#M13887</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2022-09-15T12:45:55Z</dc:date>
    </item>
  </channel>
</rss>

