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); }
public void RegisterNewCreateWorkflow(string entity, int order, IWorkflowAction action) { CreateWorkflows.Add(new WorkflowDefinition(entity, order, action)); }
public void RegisterNewCreateWorkflow(string entity, Action <GenericManager, WorkflowInputParameter> action) { CreateWorkflows.Add(new WorkflowDefinition(entity, action)); }