Math Element
The Math element may be used in business rule configuration to perform calculations, evaluate expressions and set variables based on the value of fields retrieved from the database, and also to perform assignments and disbursements in transactions. Math elements may be configured in transactions, functions, copy books, and screen math.
Note: This page explains the Math element. For information about the MathVariable element, see MathVariable Element.
Element/Tab | Definition | Attribute | Element/Attribute Value and Description |
---|---|---|---|
<Math>
|
Opening and closing tag for Math element. |
|
|
|
ID |
Text This attribute is used only in ScreenMath. |
|
|
GLOBAL |
Yes or No This attribute is used only in ScreenMath. |
|
<MathVariables> |
|
|
|
<MathVariable> |
|
|
|
<Assignment> |
|
This element is used only in transactions. |
|
<Disbursement> |
|
This element is used only in transactions. |
XML Examples
Math Element Example: Transaction
<Math>
<MathVariables>
<MathVariable VARIABLENAME="MyVariable" TYPE="VALUE" DATATYPE="INTEGER">0</MathVariable>
</MathVariables>
<Assignment TYPE="GrossFullWithdrawalWithAllocations">
<MoneyType NAME="DisbursementAmountRemoved">32</MoneyType>
</Assignment>
<Disbursement DisbursementType="DisbursementMethod" APPROVAL="Yes">
<DisbursementRole TYPE="GUID" DISBURSEMENTAMOUNT="Activity:DisbursementAmount">Activity:RoleGUID</DisbursementRole>
</Disbursement>
</Math>
Math Element Example: Function
<Function NAME="Function-ModalPremiumCalcs" RETURN="rModalPremium" DATATYPE="DECIMAL">
<Parameters>
<Parameter TYPE="INPUT" DATATYPE="DECIMAL">pFace</Parameter>
</Parameters>
<Math>
<MathVariables>
<MathVariable VARIABLENAME="CHECKED" TYPE="VALUE" DATATYPE="TEXT">CHECKED</MathVariable>
</MathVariables>
</Math>
</Function>
Math Element Example: ScreenMath
<ScreenMath>
<Math ID="GlobalScreenMath" GLOBAL="Yes">
<MathVariables>
<MathVariable VARIABLENAME="False" TYPE="VALUE" DATATYPE="INTEGER">0</MathVariable>
</MathVariables>
</Math>
</ScreenMath>