<?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 Importing process instance from history in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/importing-process-instance-from-history/m-p/188365#M141495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using Activiti 5.17.0 and have a requirement to bring in a finished process instance back into active state. The issue is sometimes user finish off the process and sometime later they realize they have made a mistake and want to put the process back in its last active state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondering if there is any out of the box functionality which I can use to accomplish this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a possible solution in my mind which will work as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a new process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Copy all the variables from historic process instance into new process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Start the new process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Delete the historic process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are few problems with above approach:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I will loose the history associated with the old process instance. This is not a good idea as we will loose the information about who did what and when.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If I have 5 states in my process (excluding start &amp;amp; end events), the new process instance will be at first state but it should be at the last state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. If I don't delete the historic process instance I will ultimately end up with 2 historic tasks which are kind of duplicate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help in this regard is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prashant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 23:03:55 GMT</pubDate>
    <dc:creator>prashant_mahesh</dc:creator>
    <dc:date>2015-10-07T23:03:55Z</dc:date>
    <item>
      <title>Importing process instance from history</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-process-instance-from-history/m-p/188365#M141495</link>
      <description>Hi,We are using Activiti 5.17.0 and have a requirement to bring in a finished process instance back into active state. The issue is sometimes user finish off the process and sometime later they realize they have made a mistake and want to put the process back in its last active state.Just wondering</description>
      <pubDate>Wed, 07 Oct 2015 23:03:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-process-instance-from-history/m-p/188365#M141495</guid>
      <dc:creator>prashant_mahesh</dc:creator>
      <dc:date>2015-10-07T23:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing process instance from history</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-process-instance-from-history/m-p/188366#M141496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Prashant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My proposal would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;Fetch all variables, process instance Id from the history&lt;/LI&gt;&lt;LI&gt;Create new process instance in runtime tables (You have to create new API method for it, because it is not supported currently.). Start process instance is not good solution because of facts you already mentioned and there could be some automatic steps at the beginning of the process.&lt;/LI&gt;&lt;LI&gt;Put created process instance on the right activity in the process definition. (There is no API for it currently, but it is easy to implement. The issue could be to create several executions e.g. for parallel gateways.)&lt;/LI&gt;&lt;LI&gt;Create pull request to activiti core (Could be interesting feature) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 07:56:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-process-instance-from-history/m-p/188366#M141496</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-10-08T07:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Importing process instance from history</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-process-instance-from-history/m-p/188367#M141497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Martin, will try to implement this way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 22:25:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-process-instance-from-history/m-p/188367#M141497</guid>
      <dc:creator>prashant_mahesh</dc:creator>
      <dc:date>2015-10-08T22:25:36Z</dc:date>
    </item>
  </channel>
</rss>

