Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

List of the custom variables which will be used in a scripting environment. Variables are used to define and easily update static values for the rule validations, formulas etc.

Defined variables can be accessed with $ sign prefix.

Example variable usage in script
var isValid = $Xml.Sum('ExpenseList/Expense/Amount') > $ExpenseLimit;


Variable values can be overriden 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]');




  • No labels