Have a simple process diagram with a call activity to a cmmn.
We implemented exit criteria in the cmmn with a simple boolean variable ${remediationCompleted} which is set to true when our Review Task is completed.
Our case execution listener is working and we can see that the “GAP ACCEPTED” milestone is reached.
However, in cockpit, our instance does not progress out of the call activity to the “Remediation Completed” task.
This is the intended behavior. The call activity completes as soon as the created case instance reaches the state COMPLETED for the first time (see 1).
You are able to solve that by adding a CaseExecutionListener2 to the case plan model which should be executed on the event terminate. The CaseExecutionListener could then signal the call activity to complete.
I have the same problem, I understand that with CMM we must explicitly to terminate the case, but how to do that? I tried to add your code into my project and I have a compilation error related to the “getActivityBehavior” method
“The method getActivityBehavior(ExecutionEntity) is undefined for the type SignalProcessInstanceListener”
Is there something missing in the class declaration? I’m using the camunda-engine-7.10.0.jar