<?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: Wait for process instance to end in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/wait-for-process-instance-to-end/m-p/174671#M127801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hm, can't edit the broken question, so it should be: Is there any way to programmatically wait for the end of a process that was just started?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just adding to this: we are not using the engine inside a web server or framework. It's operated standalone.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 16:59:16 GMT</pubDate>
    <dc:creator>languitar</dc:creator>
    <dc:date>2014-03-06T16:59:16Z</dc:date>
    <item>
      <title>Wait for process instance to end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wait-for-process-instance-to-end/m-p/174670#M127800</link>
      <description>Hi,is there any way to programmatically wait for to end hat was just started?I've seen that something like that should be possible with ExecutionListeners. However, I do not want to modify the process description manually just to install such a listener every time. There were several other postings</description>
      <pubDate>Thu, 06 Mar 2014 16:56:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wait-for-process-instance-to-end/m-p/174670#M127800</guid>
      <dc:creator>languitar</dc:creator>
      <dc:date>2014-03-06T16:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for process instance to end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wait-for-process-instance-to-end/m-p/174671#M127801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hm, can't edit the broken question, so it should be: Is there any way to programmatically wait for the end of a process that was just started?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just adding to this: we are not using the engine inside a web server or framework. It's operated standalone.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 16:59:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wait-for-process-instance-to-end/m-p/174671#M127801</guid>
      <dc:creator>languitar</dc:creator>
      <dc:date>2014-03-06T16:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for process instance to end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wait-for-process-instance-to-end/m-p/174672#M127802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is no way to do this, by default -UNLESS- you process only contains automatic steps and no wait-states (eg. user task, receive-task, intermediate events) nor async-activities.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can roll your custom solution though, if you want. I suggest using an executionListener (see userguide) that is notified when the process ends (event="end"). In this listener, you can call a specific method on either a statically referenced service/map or an injected service/map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This service/map should contains Barriers mapped to process-instance ID's. When you start a process instance, register the process-id in the service, the service creates a barrier and lets's the current thread wait for it. From your execution-listener, when the process ends, you can call the service using the delegateExecution's processInstanceId to release the barrier. ALso build in a check for process-instances that end immediately, so the no threads can get stuck on a barrier that will never be called…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 09:46:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wait-for-process-instance-to-end/m-p/174672#M127802</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-03-10T09:46:24Z</dc:date>
    </item>
  </channel>
</rss>

