Variables
List of the custom variables which will be used in a scripting environment. Variables are used to define and easily update static values for rule validations, formulas etc.
Defined variables can be accessed with the $ sign prefix.
Example variable usage in script
var isValid = $Xml.Sum('ExpenseList/Expense/Amount') > $ExpenseLimit;
Variable values can be overridden by tasks to update the value only in a task scope. Example: $AllowPriceChange can be set to false in pool definition and can be set to true for administrative type tasks to disable the rule validation.
Variables can also be used in XPath expressions with the same syntax.
Variable usage in xpath expression
var invalidExpenses = $Xml.SelectAll('ExpenseList/Expense[Amount > $ExpenseLimit]');
Copyright © 2010 - 2023 Emakin. All rights reserved.