예제 #1
0
        public void Delete(string entity, Guid id)
        {
            DeleteHandler.Execute(entity, id);
            var workflowInput = new WorkflowInputParameter();

            workflowInput.Values.Add("Id", id);
            foreach (var item in DeleteWorkflows
                     .Where(k => k.EntityLogicalName == entity)
                     .OrderBy(k => k.Order))
            {
                if (item.Action != null)
                {
                    item.Action.Execute(this, workflowInput);
                }
            }
        }
예제 #2
0
 public void RegisterNewDeleteWorkflow(string entity, int order, IWorkflowAction action)
 {
     DeleteWorkflows.Add(new WorkflowDefinition(entity, order, action));
 }
예제 #3
0
 public void RegisterNewDeleteWorkflow(string entity, Action <GenericManager, WorkflowInputParameter> action)
 {
     DeleteWorkflows.Add(new WorkflowDefinition(entity, action));
 }