Beispiel #1
0
 private object GetStringDynamicValue(string text, IActionParameter actionParameter)
 {
     if (expressionTemplateService.IsExpression(text))
     {
         var expression = expressionTemplateService.PickExpression(text);
         return(expressionService.Exec(expression, actionParameter.GetAllValues()));
     }
     else
     {
         return(text);
     }
 }
Beispiel #2
0
        private Dictionary <string, object> GetActualInputs(IActionContext context, IExpressionService expressionService)
        {
            _ = context ?? throw new ArgumentNullException(nameof(context));
            Dictionary <string, object> args = new Dictionary <string, object>();

            if (this.InputMaps != null)
            {
                foreach (var kv in this.InputMaps)
                {
                    object val = expressionService.Exec(kv.Value, null);
                    args[kv.Key] = val;
                }
            }
            return(args);
        }