Create mapping

Maps variables to arguments of a sequence being called.

Properties

- Variable*: [LTools.Common.Model.VariablesMapping] Variable to store mapping

- Assignments*: [System.Collections.Generic.Dictionary] Map collection (Argument name - Variable name)

LTools.Common.Model.VariablesMapping

Properties:

- [String] [Scripting.Model.ScriptVariable]: Variable reference

- ThrowOnKeyNotExists [Boolean]: Throw exception if argument does not exist

Methods:

- AddMapping(string, Scripting.Model.ScriptVariable): Add new mapping (argument, variable)

- DeleteMapping(string): Delete mapping (argument)

Addition:

You can also create mapping in the code, using, for example, the C # Script element.

pageC# Script

In this case, the script may be like:

map.DeleteMapping("arg1");
map.AddMapping("arg2", new ScriptVariable() { Value = var1, Name = "var1" });

Last updated