<?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: Exceptions while trying to resume tasks after lengthy jobs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107979#M75664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please (re)format your post next time and use code tags for clearity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.ActivitiException: execution waitServerProvision doesn't exist&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would there be an execution with an id of 'waitServerProvision'?&amp;nbsp; (I think you only posted part of the stacktrace, right?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What am I doing wrong here?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;You probably stored some wrong reference somewhere to be used to signal the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the ideal way of passing reference of current execution context to the external logic such that the WorkFlowEngine can be signalled and activated from its wait state for further execution.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Storing/passing on the right information to be used to signal the process. I usually use a combination of business key and receive task name. But it could also be an execution id. Depends…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 22:25:51 GMT</pubDate>
    <dc:creator>ronald_van_kuij</dc:creator>
    <dc:date>2012-05-30T22:25:51Z</dc:date>
    <item>
      <title>Exceptions while trying to resume tasks after lengthy jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107978#M75663</link>
      <description>As a beginner to Activiti,I am struggling to get my Usecase addressed.Details as followsA.Scenario :My ProcessDefinition constitutes multiple activities(predominantly service tasks),of which many of the activities require heavy IO and hence time-taking.For a servicetask that corresponds to one such</description>
      <pubDate>Wed, 30 May 2012 07:53:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107978#M75663</guid>
      <dc:creator>raadhakrishnaa</dc:creator>
      <dc:date>2012-05-30T07:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while trying to resume tasks after lengthy jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107979#M75664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please (re)format your post next time and use code tags for clearity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.ActivitiException: execution waitServerProvision doesn't exist&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would there be an execution with an id of 'waitServerProvision'?&amp;nbsp; (I think you only posted part of the stacktrace, right?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What am I doing wrong here?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;You probably stored some wrong reference somewhere to be used to signal the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the ideal way of passing reference of current execution context to the external logic such that the WorkFlowEngine can be signalled and activated from its wait state for further execution.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Storing/passing on the right information to be used to signal the process. I usually use a combination of business key and receive task name. But it could also be an execution id. Depends…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 22:25:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107979#M75664</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-30T22:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while trying to resume tasks after lengthy jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107980#M75665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Ronald for the quick response and also your suggestion on presenting the query in a readable format &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to modify my actual code with alias names for the functions so that it can be easy interpretation for the readers and I missed one such occurrence( 'waitServer…" ) in the stacktrace I pasted ,which probably confused you.I corrected/edited that in my current post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do pass the execution id of the current activitytask 'flow1-step1' and also tried the id of receivetask 'flow2-step2' ,but in either case I am reported that the execution does not exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please clarify me on the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.If there is a receive task in the definition flow,would there an entry in any of the tables 'act_ru_job' …etc so that the work engine persists the state until then into the tables and waits for a msg signal on the receive task. I did not find any such traces in mysql db tables in my case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.For The Java class that corresponds to Service Task,I tried the Java Class as an implementation of 'JavaDelegate' and also an extension of 'TaskActivityBehavior' as understood from the topic &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3613&amp;amp;p=14092&amp;amp;hilit=Asynchronous+Task#p14092" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3613&amp;amp;p=14092&amp;amp;hilit=Asynchronous+Task#p14092&lt;/A&gt;&lt;SPAN&gt; . All of them result in the same exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please give me further direction or hints on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 02:09:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107980#M75665</guid>
      <dc:creator>raadhakrishnaa</dc:creator>
      <dc:date>2012-06-01T02:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions while trying to resume tasks after lengthy jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107981#M75666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. A receive task doesn't create any jobs of timers. It just stops the process from flowing (== returning the thread that called startProcessInstance(). You can see this in the ACT_RU_EXECUTION. When you runtimeService.signal() the process, it will start again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I understand, this is what you are trying to reach is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Start a process from thread A. Since the process is heavy on I/O, you don't want thread A to be blocked by this operation. Rather, you want to return control to the thread and let activiti handle the heavy I/O operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that you're trying to signal an execution from within the same execution. At the time you call "signal()" (in #{myBean.method1…), the process is actually still 'flowing' and not yet ready to receive a signal. Since the process is just started, and hasn't reached a wait-state yet (user task, recieveTask, ..), it's not yet persisted in the DB. This is why you get the "execution not found" exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Solution: Use Async continuations &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#asyncContinuations" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#asyncContinuations&lt;/A&gt;&lt;SPAN&gt;. Remove the first service-task an signal-task, just use this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;serviceTask id="step2" activiti:expression="#{myBean.clearThePain(execution)} " activiti:async="true" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 07:01:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exceptions-while-trying-to-resume-tasks-after-lengthy-jobs/m-p/107981#M75666</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-13T07:01:29Z</dc:date>
    </item>
  </channel>
</rss>

