I find a problem about SubProcessNodeInsance in 5.1 version final
this class org.jbpm.workflow.instance.node.SubProcessNodeInsance
line 125 code : ((ProcessInstanceImpl) processInstance).setMetaData("ParentProcessInstanceId", processInstance.getId());
i think the purpose that it record the relation between subProcessInstance and parentProcessInstance.
but the "ParentProcessInstanceId" actual is SubProcessInstanceId !
maybe a bug ?
thanks!