throw new EngineException(this.getId(),
this.getWorkflowProcess(),
this.getProcessId(), "The net instance for the workflow process [Id=" + this.getProcessId() + "] is Not found");
}
//触发事件
ProcessInstanceEvent event = new ProcessInstanceEvent();
event.setEventType(ProcessInstanceEvent.BEFORE_PROCESS_INSTANCE_RUN);
event.setSource(this);
this.fireProcessInstanceEvent(event);
this.setState(IProcessInstance.RUNNING);
this.setStartedTime(rtCtx.getCalendarService().getSysDate());
rtCtx.getPersistenceService().saveOrUpdateProcessInstance(this);