VALUE

Use the VALUE type to assign a literal or fixed value to a MathVariable. This is also useful for initializing.  MathVariables store the last executed value. 

VALUE: Elements and Attributes
TYPE=VALUE
Element Attributes Parent Element Description Element/Attribute Value

<MathVariable>

TYPE

   

The actual value to be stored in the math variable.

VALUE

 

 

   

Yes: the result is stored in AsActivityMath table to be used by other activities. 

No: result is not stored. This is the default behavior.  


LOG

 

 

   

Integer that sets the rounding for numeric data types.
ROUND

CLEARVALUE

  Optional Element

Value: Yes / No

Default Value: No

Yes: The value of the math variable will be deleted after the execution of all the Attached Rules at the end of activity processing and will not be visible on the Math tab in the Activity details screen.

No: The value of the math variable will be retained after activity processing and will be displayed in the Math tab in the Activity details screen.

XML Example

<MathVariable VARIABLENAME="MyVariableName" TYPE="VALUE" DATATYPE="INTEGER">1</MathVariable>
<MathVariable VARIABLENAME="True" TYPE="VALUE" DATATYPE="INTEGER">1</MathVariable>
<MathVariable VARIABLENAME="ReplacementType" TYPE="VALUE" DATATYPE="TEXT">01</MathVariable>