*/
public NetInstance(WorkflowProcess process, final Map<String, List<IKernelExtension>> kenelExtensions) throws KernelException{
this.workflowProcess = process;
//开始节点
StartNode startNode = workflowProcess.getStartNode();
startNodeInstance = new StartNodeInstance(startNode);
List<IKernelExtension> extensionList = kenelExtensions.get(startNodeInstance.getExtensionTargetName());
for (int i = 0; extensionList != null && i < extensionList.size(); i++) {
IKernelExtension extension = extensionList.get(i);
startNodeInstance.registExtension(extension);
}
this.setStartNodeInstance(startNodeInstance);
wfElementInstanceMap.put(startNode.getId(), startNodeInstance);
//活动节点activity
List<Activity> activities = workflowProcess.getActivities();
for (int i = 0; i < activities.size(); i++) {
Activity activity = activities.get(i);