<?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 Long service tasks not starting in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/long-service-tasks-not-starting/m-p/39304#M16514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When trying to start 45 process instances which contain an asynchronous service task with of class &lt;STRONG&gt;&lt;EM&gt;ShellActvityBehavior&lt;/EM&gt; (with the class field &lt;EM&gt;wait=false)&lt;/EM&gt;&lt;/STRONG&gt;, some of them don't start, even though they show up in the diagram, as seen in the image:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="15204" class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/15204_pastedImage_1.png" style="width: 620px; height: 339px;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see, the execution's current activity is a receive tasks that waits for the long running service task to end. When it ends, it sends a message that the boundary event catches and the execution flows to the "Quick operation".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In reality, the long running task didn't start. &lt;/STRONG&gt;I know this because the task writes start and end messages to a log, with its process instance ID. That log has no indication of that specific task (of process instance 1197546).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Some general information:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm using activiti 5.18.&lt;/P&gt;&lt;P&gt;The process instances are being started via the java API.&lt;/P&gt;&lt;P&gt;This is how I build the process engine (Could altering the configuration solve this?):&lt;/P&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private static void &lt;/SPAN&gt;buildProcessEngine() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngineConfiguration cfg = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;StandaloneProcessEngineConfiguration()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setJdbcUrl(&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;properties&lt;/SPAN&gt;.getProperty(Constants.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;PROPERTY_JDBC_URL&lt;/SPAN&gt;))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setJdbcDriver(Constants.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;SQLSERVER_DRIVER_LIB&lt;/SPAN&gt;);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-style: italic;"&gt;processEngine &lt;/SPAN&gt;= cfg.buildProcessEngine();&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aviran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2017 10:30:37 GMT</pubDate>
    <dc:creator>avirankatz</dc:creator>
    <dc:date>2017-07-27T10:30:37Z</dc:date>
    <item>
      <title>Long service tasks not starting</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/long-service-tasks-not-starting/m-p/39304#M16514</link>
      <description>Hi,When trying to start 45 process instances which contain an asynchronous service task with of class ShellActvityBehavior (with the class field wait=false), some of them don't start, even though they show up in the diagram, as seen in the image:As you can see, the execution's current activity is a</description>
      <pubDate>Thu, 27 Jul 2017 10:30:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/long-service-tasks-not-starting/m-p/39304#M16514</guid>
      <dc:creator>avirankatz</dc:creator>
      <dc:date>2017-07-27T10:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Long service tasks not starting</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/long-service-tasks-not-starting/m-p/39305#M16515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't think I understood the issue that you facing...&lt;/P&gt;&lt;P&gt;could you please provide a unit test to reproduce the issue? Or at least attach the xml instead of an image using which we can reproduce the issue?&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 03:28:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/long-service-tasks-not-starting/m-p/39305#M16515</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-08-01T03:28:04Z</dc:date>
    </item>
  </channel>
</rss>

