<?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: runtime service does not return running process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52620#M30946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot! Got it to work with the "receive task".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the release date known for 5.8? Could not find it on the website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;greets&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flavio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2011 11:22:35 GMT</pubDate>
    <dc:creator>flavio_donze</dc:creator>
    <dc:date>2011-09-12T11:22:35Z</dc:date>
    <item>
      <title>runtime service does not return running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52616#M30942</link>
      <description>HelloI have a process which in certain cases does not require any userTask. In one of the serviceTasks I'm accessing the Activiy RuntimeService to receive all the running processes. for (ProcessInstance processInstance : runtimeService.createProcessInstanceQuery().list()) {&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println("RUN</description>
      <pubDate>Mon, 12 Sep 2011 07:38:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52616#M30942</guid>
      <dc:creator>flavio_donze</dc:creator>
      <dc:date>2011-09-12T07:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: runtime service does not return running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52617#M30943</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;When you've started the process instance with the runtime service and received a ProcessInstance back the instance is written to the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So at that point you should also be able to retrieve the running instance with the process instance query capabilities.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is not working, please include the process XML and the Java code you are using.&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>Mon, 12 Sep 2011 08:46:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52617#M30943</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-09-12T08:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: runtime service does not return running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52618#M30944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey trademak&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your quick reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes the following code does list the running process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessInstance instance = runtimeService.startProcessInstanceByKey(processKey, variables);&lt;BR /&gt;for (ProcessInstance in : runtimeService.createProcessInstanceQuery().list()) {&lt;BR /&gt; System.out.println("RUNNING&amp;gt;: " + in.getId() + " " + in.getProcessDefinitionId());&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I have is that my serviceTask is executed before startProcessInstanceByKey() returns the ProcessInstance, hence nothing is listed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe there is a way to force activity to write?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;greets&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flavio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 09:14:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52618#M30944</guid>
      <dc:creator>flavio_donze</dc:creator>
      <dc:date>2011-09-12T09:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: runtime service does not return running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52619#M30945</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;Okay right. In Activiti 5.8 we'll introduce asynchronous continuations to solve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For now you can add a receive task before the service task and signal the process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The receive task will make sure the process instance is persisted.&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>Mon, 12 Sep 2011 09:58:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52619#M30945</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-09-12T09:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: runtime service does not return running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52620#M30946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot! Got it to work with the "receive task".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the release date known for 5.8? Could not find it on the website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;greets&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flavio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 11:22:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtime-service-does-not-return-running-process/m-p/52620#M30946</guid>
      <dc:creator>flavio_donze</dc:creator>
      <dc:date>2011-09-12T11:22:35Z</dc:date>
    </item>
  </channel>
</rss>

