}
executionToRemove.inactivate();
executionToRemove.deleteCascade("multi-instance completed");
}
executionEntity.takeAll(activity.getOutgoingTransitions(), joinedExecutions);
} else {
if(isExtraScopeNeeded()) {
callActivityEndListeners(execution);
} else {
executionEntity.setActivityInstanceId(null);