<?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 Problem iin Activiti - Async in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-iin-activiti-async/m-p/159692#M113718</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;I have taken sample async bpmn from your site. Where i added service task instead of script task. when i run this activiti, i got the response immediately. Thats perfect. But the problem here is in the service task delegate the task to the Java class , this java class is never ever executed. I dont know why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i remove the activiti:async=true. This above java deleagate class has been executed perfectly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The scenario is, Calling this activiti from UI. I have to send 200 response code to the UI side to not wait until this activiti completes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Moreover my activiti takes longer time to complete. In this time UI has aborted the connection afterthat not able to proceed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my sample bpmn.xml file. Taken AsynScript file from ur site. Here service task is used instead of calling script task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; xmlns="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; xmlns:activiti="&lt;/SPAN&gt;&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; targetNamespace="Examples"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;process id="asyncScript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="theStart" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow sourceRef="theStart" targetRef="script" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="script" activiti:class="com.activiti.task.ServiceTask" activiti:async="true"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!–&amp;nbsp; &amp;lt;scriptTask id="script" activiti:async="true" scriptFormat="juel"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script&amp;gt;#{execution.setVariable('invoked','true')}&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt; –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow sourceRef="script" targetRef="wait" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;receiveTask id="wait" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow sourceRef="wait" targetRef="theEnd" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="theEnd" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/definitions&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me on this. i am trying all the possibilities not no clues. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 14:08:59 GMT</pubDate>
    <dc:creator>vimalan_dharma</dc:creator>
    <dc:date>2013-10-07T14:08:59Z</dc:date>
    <item>
      <title>Problem iin Activiti - Async</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-iin-activiti-async/m-p/159692#M113718</link>
      <description>Hi,I have taken sample async bpmn from your site. Where i added service task instead of script task. when i run this activiti, i got the response immediately. Thats perfect. But the problem here is in the service task delegate the task to the Java class , this java class is never ever executed. I do</description>
      <pubDate>Mon, 07 Oct 2013 14:08:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-iin-activiti-async/m-p/159692#M113718</guid>
      <dc:creator>vimalan_dharma</dc:creator>
      <dc:date>2013-10-07T14:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem iin Activiti - Async</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-iin-activiti-async/m-p/159693#M113719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;attached sample bpmn file&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 14:11:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-iin-activiti-async/m-p/159693#M113719</guid>
      <dc:creator>vimalan_dharma</dc:creator>
      <dc:date>2013-10-07T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem iin Activiti - Async</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-iin-activiti-async/m-p/159694#M113720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look in the ACT_RU_JOB table (OR alternatively, use the Explorer UI in Manage &amp;gt; Jobs OR use the managementService.createJobQuery(…).withException()) to find the job that corresponds to the "async" service-task. You can do this based on the process instance id. If the delegate is never called, you'll see that the retry-count will be 0 for the job and a reference is there to an exception stacktrace, which will lead you to your issue, most likely.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 12:46:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-iin-activiti-async/m-p/159694#M113720</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-10-09T12:46:58Z</dc:date>
    </item>
  </channel>
</rss>

