public static ActionDefinitionReference Create(string actionName, string order, string parameter) { ActionDefinitionReference actionDefinitionReference = new ActionDefinitionReference() { ActionName = actionName, Order = int.Parse(order), ActionParameter = parameter }; return actionDefinitionReference; }
public static ConditionDefinition Create(string type, ActionDefinitionReference action, string conditionInversion, string resultOnPreExecution) { ConditionType conditionType; bool? nullable; Enum.TryParse<ConditionType>(type, true, out conditionType); ConditionDefinition conditionDefinition = new ConditionDefinition() { Action = action, Type = conditionType, ConditionInversion = (string.IsNullOrEmpty(conditionInversion) ? false : bool.Parse(conditionInversion)) }; ConditionDefinition conditionDefinition1 = conditionDefinition; if (string.IsNullOrEmpty(resultOnPreExecution)) { nullable = null; } else { nullable = new bool?(bool.Parse(resultOnPreExecution)); } conditionDefinition1.ResultOnPreExecution = nullable; return conditionDefinition; }
public void AddPreExecutionAction(ActionDefinitionReference action) { this.PreExecutionImplementation.Add(action); }
public void AddAction(ActionDefinitionReference action) { this.Implementation.Add(action); }
private void ExecuteMethod(ActionDefinitionReference method, ExecutionResponseParametersComplete response) { CodeActionsInvoker codeActionsInvoker = response.ProcessInstance.ProcessScheme.CodeActionsInvoker; if (this.GlobalActionsInvoker.ExistsAction(method.ActionName)) { this.GlobalActionsInvoker.InvokeAction(method.ActionName, response.ProcessInstance, this._runtime, method.ActionParameter); return; } if (codeActionsInvoker.ExistsAction(method.ActionName)) { codeActionsInvoker.InvokeAction(method.ActionName, response.ProcessInstance, this._runtime, method.ActionParameter); return; } this.ActionProvider.ExecuteAction(method.ActionName, response.ProcessInstance, this._runtime, method.ActionParameter); }