}
//结束节点
List<EndNode> endNodes = workflowProcess.getEndNodes();
for (int i = 0; i < endNodes.size(); i++) {
EndNode endNode = endNodes.get(i);
EndNodeInstance endNodeInstance = new EndNodeInstance(endNode);
extensionList = kenelExtensions.get(endNodeInstance.getExtensionTargetName());
for (int j = 0; extensionList != null && j < extensionList.size(); j++) {
IKernelExtension extension = extensionList.get(j);
endNodeInstance.registExtension(extension);
}
wfElementInstanceMap.put(endNode.getId(), endNodeInstance);
}
//转移线
List<Transition> transitions = workflowProcess.getTransitions();
for (int i = 0; i < transitions.size(); i++) {
Transition transition = transitions.get(i);