Exemple #1
0
        public void Update(string entity, Guid id, Dictionary <string, object> values)
        {
            UpdateHandler.Execute(entity, id, values);
            var workflowInput = new WorkflowInputParameter();

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