Esempio n. 1
0
        public void abort()
        {
            if (this.State == ProcessInstanceEnum.COMPLETED || this.State == ProcessInstanceEnum.CANCELED)
            {
                throw new EngineException(this, this.WorkflowProcess, "The process instance can not be aborted,the state of this process instance is " + this.State);
            }
            IPersistenceService persistenceService = this.RuntimeContext.PersistenceService;

            persistenceService.AbortProcessInstance(this);
        }