<?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: Return to calling process but continue asyncronously in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241003#M194133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can set parent process variables from child process. It looks like execution.getParent().setVariable("a","a-value")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can send signals/messages to parent process. To avoid transaction context nesting you may need async signals, but it's up to you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, you can make parallel gateway in parent process, top line waits on signal, bottom line does call activity. Child process sets variables of parent process, then sends signal and continues its work as needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 09:44:48 GMT</pubDate>
    <dc:creator>warper</dc:creator>
    <dc:date>2016-10-20T09:44:48Z</dc:date>
    <item>
      <title>Return to calling process but continue asyncronously</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241001#M194131</link>
      <description>Hi,we have the following setting: A Parent process which calls another process (the child) via call activiti and defined out parameters for this call because we need an result from the child in the parent&amp;nbsp; After the child has created the needed result we want to pass this to the parent and continue</description>
      <pubDate>Wed, 19 Oct 2016 09:21:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241001#M194131</guid>
      <dc:creator>mlueck</dc:creator>
      <dc:date>2016-10-19T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Return to calling process but continue asyncronously</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241002#M194132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok after more searches in the forums i found &lt;/SPAN&gt;&lt;A href="https://forums.activiti.org/content/callactivity-without-waiting-subprocess-finish" rel="nofollow noopener noreferrer"&gt;this thread&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically it's stating that a CallActiviti must always wait for the called process instance to finish. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as i understood subprocesses and CallActivity's are not very different in the way there are executed. Actually The CallActivityBehavoiur is implementation of the SubprocessBehavior. The CallActivity will not leave until the called is finished. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume that the called process is not finished until all end states are reached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 06:45:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241002#M194132</guid>
      <dc:creator>mlueck</dc:creator>
      <dc:date>2016-10-20T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Return to calling process but continue asyncronously</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241003#M194133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can set parent process variables from child process. It looks like execution.getParent().setVariable("a","a-value")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can send signals/messages to parent process. To avoid transaction context nesting you may need async signals, but it's up to you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, you can make parallel gateway in parent process, top line waits on signal, bottom line does call activity. Child process sets variables of parent process, then sends signal and continues its work as needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:44:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241003#M194133</guid>
      <dc:creator>warper</dc:creator>
      <dc:date>2016-10-20T09:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Return to calling process but continue asyncronously</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241004#M194134</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;thanks for the answer. I already had a look at events and stuff and now connected parent and child through a message event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The parent call activiti get's an non interupting message boundary catch event which leads to an service task which will sent a message to an external system.&amp;nbsp; The child process has a script task which will sent a message event to the parent and then proceed which the remainder of the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The CallActiviti will still wait for the subprocess to complete but that's ok. So it would also be possible to to more things in the parent if necessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're interested or if anybody has the same issue i uploaded a test project to &lt;/SPAN&gt;&lt;A href="https://github.com/thuri/CallActivitTests" rel="nofollow noopener noreferrer"&gt;github&lt;/A&gt;&lt;SPAN&gt; which contains the processes and a junit test to show the usage.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:57:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/return-to-calling-process-but-continue-asyncronously/m-p/241004#M194134</guid>
      <dc:creator>mlueck</dc:creator>
      <dc:date>2016-10-20T11:57:55Z</dc:date>
    </item>
  </channel>
</rss>

