<?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: Pass SuperProcessId of a manually started sub-process(using Java API) in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/pass-superprocessid-of-a-manually-started-sub-process-using-java/m-p/4873#M2289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Encho!&lt;/P&gt;&lt;P&gt;Manual handling of super execution or parent execution references will not make the trick - you will end up with genuine subprocess/called activity if you manage to do it properly.&lt;/P&gt;&lt;P&gt;You can add super process id into variables map or set it as business for second process after creation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 10:14:03 GMT</pubDate>
    <dc:creator>warper</dc:creator>
    <dc:date>2017-02-06T10:14:03Z</dc:date>
    <item>
      <title>Pass SuperProcessId of a manually started sub-process(using Java API)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/pass-superprocessid-of-a-manually-started-sub-process-using-java/m-p/4872#M2288</link>
      <description>Hello,I have a two diagrams in my Activiti project.The first of them has a ServiceTask which starts manually a sub-process instance, using the Activiti java API.Here is snippet from the code:runtimeService.startProcessInstanceById(processDefinitionId, context.getVariables()); - where the processDefi</description>
      <pubDate>Mon, 06 Feb 2017 06:17:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/pass-superprocessid-of-a-manually-started-sub-process-using-java/m-p/4872#M2288</guid>
      <dc:creator>enchobelezirev</dc:creator>
      <dc:date>2017-02-06T06:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pass SuperProcessId of a manually started sub-process(using Java API)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/pass-superprocessid-of-a-manually-started-sub-process-using-java/m-p/4873#M2289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Encho!&lt;/P&gt;&lt;P&gt;Manual handling of super execution or parent execution references will not make the trick - you will end up with genuine subprocess/called activity if you manage to do it properly.&lt;/P&gt;&lt;P&gt;You can add super process id into variables map or set it as business for second process after creation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 10:14:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/pass-superprocessid-of-a-manually-started-sub-process-using-java/m-p/4873#M2289</guid>
      <dc:creator>warper</dc:creator>
      <dc:date>2017-02-06T10:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pass SuperProcessId of a manually started sub-process(using Java API)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/pass-superprocessid-of-a-manually-started-sub-process-using-java/m-p/4874#M2290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Warper, your safest approach would be to add the parent process instance id as a variable and inject it when you start the "sub process".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You indicate you were having issues with the parallel execution of Called Activities, likely this is because you are hitting Optimistic Locking Exceptions if you are updating variables in the Called Activities.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following thread for details:&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/thread/226908"&gt;Synchronization issue in parallel multi-instance call activity&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:23:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/pass-superprocessid-of-a-manually-started-sub-process-using-java/m-p/4874#M2290</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-06T17:23:05Z</dc:date>
    </item>
  </channel>
</rss>

