Esempio n. 1
0
 /* (non-Javadoc)
  * @see org.fireflow.engine.IProcessInstance#abort()
  */
 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);
 }