<?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: Exception when deleting a process with long running task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31197#M16107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you deleting using the process instance id?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Afaik, the delete should cascade to all its child executions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2011 08:04:40 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2011-04-05T08:04:40Z</dc:date>
    <item>
      <title>Exception when deleting a process with long running task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31196#M16106</link>
      <description>I am doing some tests to understand the behaviour of RuntimeService.deleteProcessInstance.I create a process with a task which loops a set number of times logging messages to the console then sleeping for 1 second.In my test method, I call RuntimeService.startProcessInstanceByKey(), sleep for a few</description>
      <pubDate>Mon, 04 Apr 2011 15:47:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31196#M16106</guid>
      <dc:creator>awelsh</dc:creator>
      <dc:date>2011-04-04T15:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when deleting a process with long running task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31197#M16107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you deleting using the process instance id?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Afaik, the delete should cascade to all its child executions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 08:04:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31197#M16107</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-04-05T08:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when deleting a process with long running task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31198#M16108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have this same errors and some different but related ones AND it is reproducable. To me it happens when the engine is ending a process and begins with deleting things from the RU tables. If the variables are removed, but the execution is not (yet) and something else writes a variable to the db again, the step of removing the execution fails. This results in the same error as above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it could also be that the variables are removed and a not yet removed execution is signalled, goes to a transition with a condition and then you get the error that there is an unknown property&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;SEVERE: Error while closing command context&lt;BR /&gt;org.activiti.engine.ActivitiException: Unknown property used in expression&lt;BR /&gt; at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:55)&lt;BR /&gt; at org.activiti.engine.impl.el.UelExpressionCondition.evaluate(UelExpressionCondition.java:37)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:64)&lt;BR /&gt;… (nothing interesting below, believe me…)&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;And playing with some delays in my unit test, I can even get NPE's (note that I DO use the runtimeService!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;SEVERE: Error while closing command context&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt; at org.activiti.engine.impl.history.handler.ActivityInstanceEndHandler.findActivityInstance(ActivityInstanceEndHandler.java:50)&lt;BR /&gt; at org.activiti.engine.impl.history.handler.ActivityInstanceEndHandler.findActivityInstance(ActivityInstanceEndHandler.java:77)&lt;BR /&gt; at org.activiti.engine.impl.history.handler.ActivityInstanceEndHandler.notify(ActivityInstanceEndHandler.java:36)&lt;BR /&gt; at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:38)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:76)&lt;BR /&gt; at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:483)&lt;BR /&gt; at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:326)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:92)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:49)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:37)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.behavior.ReceiveTaskActivityBehavior.signal(ReceiveTaskActivityBehavior.java:35)&lt;BR /&gt; at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:309)&lt;BR /&gt; at org.activiti.engine.impl.cmd.SignalCmd.execute(SignalCmd.java:53)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;BR /&gt; at org.activiti.engine.impl.RuntimeServiceImpl.signal(RuntimeServiceImpl.java:131)&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll attach a zip file shortly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 22:06:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31198#M16108</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-07-29T22:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when deleting a process with long running task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31199#M16109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The attached project can be used to create the problems described above. Putting thread.sleep(…) before the set variable in within the loop and/or before the signal can be used to create different errors. Since it is timing related, I cannot tell which values are needed for your system&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 22:23:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31199#M16109</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-07-29T22:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when deleting a process with long running task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31200#M16110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-813" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-813&lt;/A&gt;&lt;SPAN&gt; seems related but with the diference that that is in the SAME context. The above issue is in different contexts, so it might be that a more complex solution is needed. Maybe something like setting the process to 'ended', make sure all inserts to this instance are prevented once the process is marked as ended and only after that start removing things. Marking it is something that needs to be cache aware or whatever. Does not sound like a simple solution…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 22:57:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31200#M16110</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-07-29T22:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when deleting a process with long running task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31201#M16111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hitting the same problem...the deleteProcessInstance call is actually not terminating anything. &amp;nbsp;Our flow is still continued, and then got the exeception somehow..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:24:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31201#M16111</guid>
      <dc:creator>cls</dc:creator>
      <dc:date>2017-03-10T11:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when deleting a process with long running task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31202#M16112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add on top of it, after calling deleteProcessInstance, execution.isEnded() always return false, even after the exception above is thrown&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:25:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-when-deleting-a-process-with-long-running-task/m-p/31202#M16112</guid>
      <dc:creator>cls</dc:creator>
      <dc:date>2017-03-10T11:25:23Z</dc:date>
    </item>
  </channel>
</rss>

