<?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: Error closing a Process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131530#M92435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here you can see the image of my process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.francolombardo.net/wp-content/uploads/x.png" rel="nofollow noopener noreferrer"&gt;http://www.francolombardo.net/wp-content/uploads/x.png&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each of the user tasks I defined is ended by a RAST call. They lead to task "Scelta percorsi" (the red A), which executes this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class SceltaPercorsi implements ActivityBehavior {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public void execute(ActivityExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;PvmTransition&amp;gt; paths= calculateTheRightPaths();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.inactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.takeAll(paths, new ArrayList&amp;lt;ActivityExecution&amp;gt;());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under some circumnstances my code finds that the only possible path is toward task "Mail avviso commmerciale" (the red B).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this an "asynchronous step"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 10:30:16 GMT</pubDate>
    <dc:creator>f_lombardo</dc:creator>
    <dc:date>2013-04-29T10:30:16Z</dc:date>
    <item>
      <title>Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131522#M92427</link>
      <description>Hi all.I'm using Actviti 5.11 via the REST API. Sometimes, when I close a task that triggers the end of a process, I get this error:3-apr-2013 15.42.31 org.activiti.engine.impl.interceptor.CommandContext closeGRAVE: Error while closing command contextorg.activiti.engine.ActivitiException: execution</description>
      <pubDate>Mon, 08 Apr 2013 12:27:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131522#M92427</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-04-08T12:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131523#M92428</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;Can you explain this a bit more?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that you complete a task that ends the process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But in the stacktrace I see that you are retrieving the process instance details of that ended process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And that process instance doesn't exist anymore, so you'll get an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 15:03:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131523#M92428</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-04-09T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131524#M92429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;I understand that you complete a task that ends the process instance.&lt;BR /&gt;But in the stacktrace I see that you are retrieving the process instance details of that ended process instance.&lt;BR /&gt;And that process instance doesn't exist anymore, so you'll get an exception.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That's true, but I think that Activiti should not throw any exception. As a matter of fact, if I call this REST API after a while, it responds the right way, telling me that the process exists, but it is completed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "processInstanceId": "35910",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "businessKey": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "processDefinitionId": "valutazioneParallelaRichiestaOfferta:10:29604",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "startTime": "2013-04-02T09:21:22CEST",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "startActivityId": "avvioProcesso",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "startUserId": "PIPPO",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "completed": true,&lt;BR /&gt;……&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that there is a problem that arises when you close a process and, during the closing phase, you invoke the "process-instance" API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 08:17:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131524#M92429</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-04-10T08:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131525#M92430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, but that is a matter of transactions: the second transaction doesn't see anything that hasn't been committed yet. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I don't see how that could be solved without breaking a lot of other stuff.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 14:34:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131525#M92430</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-10T14:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131526#M92431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Uhm, is it a problem of timing? I mean, I sent the second command _after_ the first has been completed. For my program the commitment is completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 09:27:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131526#M92431</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-04-15T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131527#M92432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So you have 2 separate REST calls? The rest call will only return once the transaction is completed, so indeed the second one should see it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using async steps in your process? That could explain it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 11:01:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131527#M92432</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-16T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131528#M92433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I have two separate REST calls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, but I didn't understand what do you mean with "async steps".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 09:47:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131528#M92433</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-04-17T09:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131529#M92434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I mean, what does your process do? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have two rest calls, I find it very hard to see why it would give different results depending on the timing … UNLESS the process using an asynchronous step, which means the first rest call would return before the process is actually done.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 11:40:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131529#M92434</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-18T11:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131530#M92435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here you can see the image of my process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.francolombardo.net/wp-content/uploads/x.png" rel="nofollow noopener noreferrer"&gt;http://www.francolombardo.net/wp-content/uploads/x.png&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each of the user tasks I defined is ended by a RAST call. They lead to task "Scelta percorsi" (the red A), which executes this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class SceltaPercorsi implements ActivityBehavior {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public void execute(ActivityExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;PvmTransition&amp;gt; paths= calculateTheRightPaths();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.inactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.takeAll(paths, new ArrayList&amp;lt;ActivityExecution&amp;gt;());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under some circumnstances my code finds that the only possible path is toward task "Mail avviso commmerciale" (the red B).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this an "asynchronous step"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 10:30:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131530#M92435</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-04-29T10:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131531#M92436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ehmm, are you implementing your own parallel execution implementation? Why are you calling the inactivate method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the code behind the calculateTheRightPaths method call?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 11:24:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131531#M92436</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-04-29T11:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131532#M92437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a little history of my process: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/activityexecutiontakeall-what-2nd-parameter" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/activityexecutiontakeall-what-2nd-parameter&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why am I calling "inactivate"? Well, I just copied an pasted ParallelGatewayActivityBehavior: I saw that without that method the whole machinery didn't work, so….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I'd appreciate your explanations about that gateway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 12:45:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131532#M92437</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-04-29T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131533#M92438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Franco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the background, that explains it a bit more for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you add some details what's behind the calculateTheRightPaths method call? Because that's where the magic happens to see which paths should be taken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 09:52:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131533#M92438</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-05-01T09:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131534#M92439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, there is nothing magic, but something convoluted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the "Scelta uffici" ("Offices choice") task the user can decide which of the next 3 phases he wants to activate (at least 1). The process does that setting 3 variables, tested by the calculateTheRightPaths&amp;nbsp; methods. If the right variable is setted and the task is not already activated, it adds the corrisponding path to the PvmTransition List. If the user chooses less than 3 paths, and the process is still going, calculateTheRightPaths method adds the path to "Scelta uffici" task too, so that the user has the chance to activtate the remaining paths while the other are already activated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's all done, the method sends to the final step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, it's a bit obscure…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 08:42:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131534#M92439</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-05-02T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131535#M92440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, do let's go back to the original question of this post. You get an exception while retrieving the process instance details via the REST API right? So you complete a user task that eventually ends the process instance right? Then you do another REST call to retrieve the details about that process instance and you get this exception?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code is in that REST service implementation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map&amp;lt;String, Object&amp;gt; variableMap = ActivitiUtil.getRuntimeService()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getVariables(processInstanceId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is returning that exception because the process has been completed. That's a bug because the variables should be retrieved from the HistoryService. Could you create a JIRA for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 09:37:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131535#M92440</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-05-02T09:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131536#M92441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Uhm, there's something I can't understand. Here &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/api/process/ProcessInstanceResource.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/api/process/ProcessInstanceResource.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; variableMap = ActivitiUtil.getRuntimeService()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getVariables(processInstanceId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch(Exception e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Absorb possible error that the execution could not be found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;HistoricDetail&amp;gt; historyVariableList = ActivitiUtil.getHistoryService()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createHistoricDetailQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processInstanceId(processInstanceId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .variableUpdates()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .orderByTime()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .desc()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the error should be catched! Is this stack trace simply a log (but I didn't find where it should be printed to the log file), while my problem isn't really generated here but in another point of the application?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 10:58:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131536#M92441</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-05-02T10:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131537#M92442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Franco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right, that is strange. If you create a JIRA I'll do some more digging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:50:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131537#M92442</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-05-03T13:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error closing a Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131538#M92443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here it is: &lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1677" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-1677&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 15:15:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-closing-a-process/m-p/131538#M92443</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-05-03T15:15:09Z</dc:date>
    </item>
  </channel>
</rss>

