AnsweredAssumed Answered

cancelActiviti='true' + retry interceptor=>ActivitiException

Question asked by workflowuser2 on Aug 15, 2012
Latest reply on Aug 15, 2012 by workflowuser2
I have a call-activiti with async-continuation. Call-activiti is executed in a loop.
<callActivity id="callActiviti" name="Call activity" calledElement="calledActiviti2">
        <extensionElements>
          <activiti:in source="assigee" target="assigee"></activiti:in>
        </extensionElements>
        <multiInstanceLoopCharacteristics isSequential="false" activiti:collection="assigeelist" activiti:elementVariable="assigee"></multiInstanceLoopCharacteristics>
      </callActivity>

I have a boundary error on the call-activiti:
<boundaryEvent id="boundaryerror1" cancelActivity="true" attachedToRef="callActiviti">
      <errorEventDefinition></errorEventDefinition>
    </boundaryEvent>

Next, I have added RetryInterceptor to the JobExecutor.

When a running path of call-activiti results into BpmnError, the whole process execution is cancelled (cancelActiviti="true"). However, all other running threads (different call-activiti loop path), throw the following exception when they try to execute the next steps:
org.activiti.engine.ActivitiException: No job found with id '59'
   at org.activiti.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:58)
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
   at com.dell.activiti.interceptors.RetryInterceptor.execute(RetryInterceptor.java)
   at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:46)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)



Is there a way to suppress this?

pdt

Outcomes