<?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: How to pass variables to parallel threads in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-variables-to-parallel-threads/m-p/220349#M173479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I tried to retrieve the super Execution from the forked parallel Java Delegate, but it failed.&amp;nbsp; Here was my code:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void execute(DelegateExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String superId = execution.getSuperExecutionId();&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution parent = execution.getEngineServices().getRuntimeService().createExecutionQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .executionId(superId).singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // superId is NOT NULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // parent IS NULL&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;So my question is, why do I get an execution id from getSuperExecutionId, but I can't find that execution in the Activiti database using the ExectuionQuery.executionId()?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2016 14:37:22 GMT</pubDate>
    <dc:creator>mstover</dc:creator>
    <dc:date>2016-05-06T14:37:22Z</dc:date>
    <item>
      <title>How to pass variables to parallel threads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-variables-to-parallel-threads/m-p/220348#M173478</link>
      <description>When I use a parallelGateway to fork a process to two or more new paths, and if I use async=true so that it truly uses parallel threads, the new threads don't get any of the process variables passed to them.&amp;nbsp; We're using Camel integration, so we need the camelBody at the very least to flow through t</description>
      <pubDate>Wed, 04 May 2016 14:46:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-variables-to-parallel-threads/m-p/220348#M173478</guid>
      <dc:creator>mstover</dc:creator>
      <dc:date>2016-05-04T14:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variables to parallel threads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-variables-to-parallel-threads/m-p/220349#M173479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I tried to retrieve the super Execution from the forked parallel Java Delegate, but it failed.&amp;nbsp; Here was my code:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void execute(DelegateExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String superId = execution.getSuperExecutionId();&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution parent = execution.getEngineServices().getRuntimeService().createExecutionQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .executionId(superId).singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // superId is NOT NULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // parent IS NULL&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;So my question is, why do I get an execution id from getSuperExecutionId, but I can't find that execution in the Activiti database using the ExectuionQuery.executionId()?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 14:37:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-variables-to-parallel-threads/m-p/220349#M173479</guid>
      <dc:creator>mstover</dc:creator>
      <dc:date>2016-05-06T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variables to parallel threads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-variables-to-parallel-threads/m-p/220350#M173480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mstover,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So my question is, why do I get an execution id from getSuperExecutionId, but I can't find that execution in the Activiti database using the ExectuionQuery.executionId()?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I would say that execution was not flushed to the DB yet (see &lt;/SPAN&gt;&lt;CODE&gt;org.activiti5.engine.impl.db.DbSqlSession#flush&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&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>Tue, 10 May 2016 08:51:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-variables-to-parallel-threads/m-p/220350#M173480</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-10T08:51:27Z</dc:date>
    </item>
  </channel>
</rss>

