public void abort() throws EngineException {
if (this.state.intValue() == IProcessInstance.COMPLETED || this.state.intValue() == IProcessInstance.CANCELED) {
throw new EngineException(this, this.getWorkflowProcess(), "The process instance can not be aborted,the state of this process instance is " + this.getState());
}
IPersistenceService persistenceService = rtCtx.getPersistenceService();
persistenceService.abortProcessInstance(this);
}
/**
* 触发process instance相关的事件