Beispiel #1
0
        public Guid Create(string entity, Dictionary <string, object> values)
        {
            var id            = CreateHandler.Execute(entity, values);
            var workflowInput = new WorkflowInputParameter();

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