<?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: Implementing asynchronous service task. need help in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/implementing-asynchronous-service-task-need-help/m-p/73752#M48178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I figured it out: the job executor was not started.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have replaced this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ProcessEngine processEngine = ProcessEngineConfiguration&lt;BR /&gt;.createStandaloneProcessEngineConfiguration()&lt;BR /&gt;.buildProcessEngine();&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;withe the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ProcessEngine processEngine = ProcessEngineConfiguration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createProcessEngineConfigurationFromResource("activiti.cfg.xml")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;in the &lt;/SPAN&gt;&lt;EM&gt;activiti.cfg.xml&lt;/EM&gt;&lt;SPAN&gt; I made sure I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now that it's working, I noticed that the task is completed when the &lt;/SPAN&gt;&lt;EM&gt;execute()&lt;/EM&gt;&lt;SPAN&gt; method returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I still would like to know how I can get a handle to the task instance in the &lt;/SPAN&gt;&lt;EM&gt;execute()&lt;/EM&gt;&lt;SPAN&gt; method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be helpful especially when the same Java class is used in more then one task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't seem to get this information from the DelegateExecution variable that is passed in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ion&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jan 2012 17:59:44 GMT</pubDate>
    <dc:creator>imoraru</dc:creator>
    <dc:date>2012-01-06T17:59:44Z</dc:date>
    <item>
      <title>Implementing asynchronous service task. need help</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/implementing-asynchronous-service-task-need-help/m-p/73751#M48177</link>
      <description>Hi,I am trying to implement a process where two asynchronous tasks run in parallel.The process layout looks like this:[attachment=0]parallel-process.tiff[/attachment]If the activiti:async is not set, all the tasks are executed sequentially.If I set the activiti:async=true for the parallel tasks, the</description>
      <pubDate>Fri, 06 Jan 2012 14:35:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/implementing-asynchronous-service-task-need-help/m-p/73751#M48177</guid>
      <dc:creator>imoraru</dc:creator>
      <dc:date>2012-01-06T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing asynchronous service task. need help</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/implementing-asynchronous-service-task-need-help/m-p/73752#M48178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I figured it out: the job executor was not started.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have replaced this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ProcessEngine processEngine = ProcessEngineConfiguration&lt;BR /&gt;.createStandaloneProcessEngineConfiguration()&lt;BR /&gt;.buildProcessEngine();&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;withe the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ProcessEngine processEngine = ProcessEngineConfiguration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createProcessEngineConfigurationFromResource("activiti.cfg.xml")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;in the &lt;/SPAN&gt;&lt;EM&gt;activiti.cfg.xml&lt;/EM&gt;&lt;SPAN&gt; I made sure I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now that it's working, I noticed that the task is completed when the &lt;/SPAN&gt;&lt;EM&gt;execute()&lt;/EM&gt;&lt;SPAN&gt; method returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I still would like to know how I can get a handle to the task instance in the &lt;/SPAN&gt;&lt;EM&gt;execute()&lt;/EM&gt;&lt;SPAN&gt; method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This would be helpful especially when the same Java class is used in more then one task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't seem to get this information from the DelegateExecution variable that is passed in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ion&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 17:59:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/implementing-asynchronous-service-task-need-help/m-p/73752#M48178</guid>
      <dc:creator>imoraru</dc:creator>
      <dc:date>2012-01-06T17:59:44Z</dc:date>
    </item>
  </channel>
</rss>

