<?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 RuntimeService query for long running service, stuck in service task. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-query-for-long-running-service-stuck-in-service/m-p/188282#M141412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've come across a special issue, where our application needs to know, whether a process for a certain business key has already been started. However, this process includes a heavy service thats at the beginning that blocks the process to read certain data from web services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The process itself is started by a queue message and it is mandatory, that for a given business key only a single process instance is running. However, a query like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;runtimeService.createProcessInstanceQuery() …. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;does not find the running process until it has reached at least one transaction border (e.g. a manual task, an asynchronous task, or others) and because it may still be stuck in the long running service task, nothing is found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to determine, whether the activity engine is currently working running a process instance without the necessary commit into the database? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We handled this situation by setting async="true" for the long running service task, however, we actually would like to stay synchronous at that time to handle errors more conveniently in case the web service calls fail due to network issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heiko&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 17:35:17 GMT</pubDate>
    <dc:creator>bardioc</dc:creator>
    <dc:date>2014-06-12T17:35:17Z</dc:date>
    <item>
      <title>RuntimeService query for long running service, stuck in service task.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-query-for-long-running-service-stuck-in-service/m-p/188282#M141412</link>
      <description>Hello,I've come across a special issue, where our application needs to know, whether a process for a certain business key has already been started. However, this process includes a heavy service thats at the beginning that blocks the process to read certain data from web services.The process itself</description>
      <pubDate>Thu, 12 Jun 2014 17:35:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-query-for-long-running-service-stuck-in-service/m-p/188282#M141412</guid>
      <dc:creator>bardioc</dc:creator>
      <dc:date>2014-06-12T17:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeService query for long running service, stuck in service task.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-query-for-long-running-service-stuck-in-service/m-p/188283#M141413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use the event mechanism &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#eventDispatcher" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#eventDispatcher&lt;/A&gt;&lt;SPAN&gt; to listen to entity create events for a process instance entity, to know when the process instance is created (but before it is started)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 10:23:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/runtimeservice-query-for-long-running-service-stuck-in-service/m-p/188283#M141413</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-06-17T10:23:41Z</dc:date>
    </item>
  </channel>
</rss>

