public virtual void DeleteInstance(IWorkflowInstance instance) { EntityEventManager.RaiseEvent <IWorkflowInstance>(EventStep.Before, EventType.Delete, instance); InstanceService.Delete(instance); EntityEventManager.RaiseEvent <IWorkflowInstance>(EventStep.After, EventType.Delete, instance); WorkflowInstanceLog(instance, "删除"); }