<?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: Access parent ProcessInstance in execution listener in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/access-parent-processinstance-in-execution-listener/m-p/210828#M163958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you add an execution listener to the start event in a sub process, the sub process instance will not be persisted yet. It will be persisted when the first wait state is reached. So it might be a good idea to add a service task or even a manual task with async is true and move the execution listener to that task. Then it's possible to do queries. What you could use is the ProcessInstanceQuery subProcessInstanceId method and set the process instance id of the sub process there. That should give back the parent process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 15:12:15 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2015-03-04T15:12:15Z</dc:date>
    <item>
      <title>Access parent ProcessInstance in execution listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-parent-processinstance-in-execution-listener/m-p/210827#M163957</link>
      <description>I am using ExecutionListener attached on the start event at the Process level through customized parser - I am adding extra logic to process creation.When I create process through 'Call Activity' I want to get BusinessKey of parent.Simplified code accessing parent might look like that:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public</description>
      <pubDate>Wed, 04 Mar 2015 08:52:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-parent-processinstance-in-execution-listener/m-p/210827#M163957</guid>
      <dc:creator>jakub_telicki</dc:creator>
      <dc:date>2015-03-04T08:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Access parent ProcessInstance in execution listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-parent-processinstance-in-execution-listener/m-p/210828#M163958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you add an execution listener to the start event in a sub process, the sub process instance will not be persisted yet. It will be persisted when the first wait state is reached. So it might be a good idea to add a service task or even a manual task with async is true and move the execution listener to that task. Then it's possible to do queries. What you could use is the ProcessInstanceQuery subProcessInstanceId method and set the process instance id of the sub process there. That should give back the parent process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 15:12:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-parent-processinstance-in-execution-listener/m-p/210828#M163958</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-03-04T15:12:15Z</dc:date>
    </item>
  </channel>
</rss>

