<?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 Queries in execution listener in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157176#M111375</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;I have a process which starts subprocesses and I would like to modify variables from the parent process at the end of a subprocess. I have added a ExecutionListener to my processes. This works fine however within the notify(DelagateExecution) method, I do not manage to get the processInstanceId of the parent process since all queries returns null (execution.getVariable(parentId, "myVar") works if I hardcode the parentId).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another way to get the super processInstanceId ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2013 09:53:41 GMT</pubDate>
    <dc:creator>thomasl</dc:creator>
    <dc:date>2013-12-17T09:53:41Z</dc:date>
    <item>
      <title>Queries in execution listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157176#M111375</link>
      <description>Hi, I have a process which starts subprocesses and I would like to modify variables from the parent process at the end of a subprocess. I have added a ExecutionListener to my processes. This works fine however within the notify(DelagateExecution) method, I do not manage to get the processInstanceId</description>
      <pubDate>Tue, 17 Dec 2013 09:53:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157176#M111375</guid>
      <dc:creator>thomasl</dc:creator>
      <dc:date>2013-12-17T09:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Queries in execution listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157177#M111376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the activiti:in and activit&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ut to populate parent-process variables using values from the sub-process, when it completes (see userguide). If you really want to do it manually, try casting (instanceof check first) the DelegateExecution to an ExecutionEntity and use the getSuperExecutionId() to retrieve the parent process…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 10:42:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157177#M111376</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-17T10:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Queries in execution listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157178#M111377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Frederik !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try that. Could it be more straightforward the other way around, i.e. is it possible to easily get subprocess variables from for instance an end event listener of the callActivity ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(The idea is that I need to merge variables from&amp;nbsp; the parent and child process, I could use activiti&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ut and a scriptTask afterwards but since this are tedious operations to perform, I would like to make it as transparent as possible to the BPMN script developer). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 11:14:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157178#M111377</guid>
      <dc:creator>thomasl</dc:creator>
      <dc:date>2013-12-17T11:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Queries in execution listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157179#M111378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I quite sure the an end-execution-listener is called in the execution-context of the parent process, so the DelegateExecution you get there, is not aware of the child-scope, as it will have been destroyed as part of the end-event of the sub-process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 07:58:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157179#M111378</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-18T07:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Queries in execution listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157180#M111379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederik, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes you're right. I tried and the sub-process is not available neither at the callActivity start event nor at the end. However, I used a cast in the sub-process end event to retrieve the parent execution as you proposed and it works fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, it was very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 09:10:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-in-execution-listener/m-p/157180#M111379</guid>
      <dc:creator>thomasl</dc:creator>
      <dc:date>2013-12-18T09:10:32Z</dc:date>
    </item>
  </channel>
</rss>

