<?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 Re: Setting Process Variable after complete: Process does nit finish correctly. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162767#M116615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are planning to change the ACT_FK_VAR_EXE constraint to cascade deletes.&amp;nbsp; Not sure why I didn't think about this before.&amp;nbsp; That should get us up and running on 5.14 without the risk of rushing an upgrade outside of a release cycle, and we also won't have to worry about deleting the dups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding multipe threads…we are using execution listeners for setting a couple of variables on Start (rootProcessDefinitionKey and rootProcessInstanceId).&amp;nbsp; We use subprocesses/call activities extensively, and as variable names imply, this allows us to see what the base workflow is from the child process.&amp;nbsp; Since both the base workflow and the subprocess use the listener, we may be getting dups if the variable is set on both process instances before the first commit point.&amp;nbsp; The strange thing is that we can't recreate the problem in any pre-production environment (on either 5.14 or 5.15.1).&amp;nbsp; The only way to force the constraint violation is to manually insert the duplicate variables in the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, regardless of how the dups are being set (and whether or not it's fixed in 5.15.1), the cascading delete should resolve the issue.&amp;nbsp; Once we're on 5.15.1 in production, I will check to see if we're still getting runtime variable dups and report back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 18:22:17 GMT</pubDate>
    <dc:creator>aggiepilot04</dc:creator>
    <dc:date>2014-04-24T18:22:17Z</dc:date>
    <item>
      <title>Setting Process Variable after complete: Process does nit finish correctly.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162762#M116610</link>
      <description>Hello,We have a process, that finishes with a service task (db update). [img]http://abload.de/img/capturedzrhx.png[/img]In there, we used runtimeService.setVariable(); to set another variable, if the database update was successfull or not.(this method is called by the service task)&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ublic void updat</description>
      <pubDate>Mon, 16 Sep 2013 10:20:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162762#M116610</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2013-09-16T10:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Process Variable after complete: Process does nit finish correctly.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162763#M116611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have an isolated unit-test for this that can be run easily standalone with the configuration you're using? As this is quite trivial behaivour (saving variables), we have a lot of coverage for these kind of things. Could be that a specific configuration OR operation( or the moment you do it) is causing this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 12:35:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162763#M116611</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-09-20T12:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Process Variable after complete: Process does nit finish correctly.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162764#M116612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We're having a similar issue that seems to be related to ACT-955:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### Error updating database.&amp;nbsp; Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02292: integrity constraint (ACTIVITI.ACT_FK_VAR_EXE) violated - child record found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntity.deleteExecution-Inline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### The error occurred while setting parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### SQL: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;### Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02292: integrity constraint (ACTIVITI.ACT_FK_VAR_EXE) violated - child record found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to be related to having duplicate variables in ACT_RU_VARIABLE (note the REV is incremented):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2070893 2 string rootProcessDefinitionKey 1796751 1796751&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2068451 1 string rootProcessDefinitionKey 1796751 1796751&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After deleting one of these, we can complete the workflows…but I can't figure out how these dups are being created.&amp;nbsp; We use the REST API for all of our Activiti integration.&amp;nbsp; We've also only seen this issue in our production environment, which is 5.14.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 21:26:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162764#M116612</guid>
      <dc:creator>aggiepilot04</dc:creator>
      <dc:date>2014-04-22T21:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Process Variable after complete: Process does nit finish correctly.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162765#M116613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Didn't make it all the way through the forum search results before posting…my bad.&amp;nbsp; Looks like this was resolved in 5.15 under ACT-1887.&amp;nbsp; I can't think of any place where we'd update a variable in separate threads, but somehow that is happening.&amp;nbsp; Since the fix is in setting the variables, we'll need to manually delete all of the dups from the table after the upgrade…correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 21:49:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162765#M116613</guid>
      <dc:creator>aggiepilot04</dc:creator>
      <dc:date>2014-04-22T21:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Process Variable after complete: Process does nit finish correctly.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162766#M116614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; Since the fix is in setting the variables, we'll need to manually delete all of the dups from the table after the upgrade…correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it does seem like it unfortunately. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing to verify is that it works on 5.15.1, before doing the production upgrade. especially if you are mentioning that you aren't using multiple threads on the same process&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 07:32:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162766#M116614</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-04-24T07:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Process Variable after complete: Process does nit finish correctly.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162767#M116615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are planning to change the ACT_FK_VAR_EXE constraint to cascade deletes.&amp;nbsp; Not sure why I didn't think about this before.&amp;nbsp; That should get us up and running on 5.14 without the risk of rushing an upgrade outside of a release cycle, and we also won't have to worry about deleting the dups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding multipe threads…we are using execution listeners for setting a couple of variables on Start (rootProcessDefinitionKey and rootProcessInstanceId).&amp;nbsp; We use subprocesses/call activities extensively, and as variable names imply, this allows us to see what the base workflow is from the child process.&amp;nbsp; Since both the base workflow and the subprocess use the listener, we may be getting dups if the variable is set on both process instances before the first commit point.&amp;nbsp; The strange thing is that we can't recreate the problem in any pre-production environment (on either 5.14 or 5.15.1).&amp;nbsp; The only way to force the constraint violation is to manually insert the duplicate variables in the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, regardless of how the dups are being set (and whether or not it's fixed in 5.15.1), the cascading delete should resolve the issue.&amp;nbsp; Once we're on 5.15.1 in production, I will check to see if we're still getting runtime variable dups and report back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 18:22:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162767#M116615</guid>
      <dc:creator>aggiepilot04</dc:creator>
      <dc:date>2014-04-24T18:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Process Variable after complete: Process does nit finish correctly.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162768#M116616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; We are planning to change the ACT_FK_VAR_EXE constraint to cascade deletes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good thinking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Once we're on 5.15.1 in production, I will check to see if we're still getting runtime variable dups and report back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Great. Looking forward to no dups &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 08:04:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162768#M116616</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-04-25T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Process Variable after complete: Process does nit finish correctly.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162769#M116617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please confirm if this issue is fixed in 15.5.1 .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 13:48:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-process-variable-after-complete-process-does-nit-finish/m-p/162769#M116617</guid>
      <dc:creator>sharat</dc:creator>
      <dc:date>2014-05-10T13:48:47Z</dc:date>
    </item>
  </channel>
</rss>

