public DefaultGroupRunnerService(IActionExecuterService actionExecuterService, IPublishValueService publishValueService, IIdGenService idGenService, IDynamicValueService dynamicValueService, IConvertService convertService, WorkflowOption workflowOption) { this.actionExecuterService = actionExecuterService; this.publishValueService = publishValueService; this.idGenService = idGenService; this.dynamicValueService = dynamicValueService; this.convertService = convertService; this.workflowOption = workflowOption; }
public static void PublishGlobalVars(this IPublishValueService publishValueService, IActionParameter actionParameter, IDictionary <string, object> values) { _ = publishValueService ?? throw new ArgumentNullException(nameof(publishValueService)); if (values == null) { return; } foreach (var kv in values) { publishValueService.PublishGlobalVars(kv.Key, kv.Value, actionParameter); } }
protected virtual void PublishGlobalVars(IActionContext context, IPublishValueService publishValueService) { _ = context ?? throw new ArgumentNullException(nameof(context)); if (this.WorkflowInfo == null || this.WorkflowInfo.GlobalVars == null) return; publishValueService.PublishGlobalVars(context.Parameters, this.WorkflowInfo.GlobalVars); }