}
for (ExecutionEntity execution : childExecutions) {
if(execution.getActivityInstanceId() == null) {
TransitionInstanceImpl transitionInstance = new TransitionInstanceImpl();
initProcessElementInstance(transitionInstance, parentActInst, execution);
// can use execution id as persistent ID for transition as an execution can execute as most one transition at a time.
transitionInstance.setId(execution.getId());
transitionInstance.setExecutionId(execution.getId());
transitionInstance.setTargetActivityId(execution.getActivityId());
childTransitionInstances.add(transitionInstance);
} else if (!isInactiveConcurrentRoot(execution) && !execution.getActivityInstanceId().equals(parentActInst.getId())) {