Oracle® Rules Palette Release 9.1.0.0.0 E15811-01

# FUNCTIONCALL

## Description

A transaction or business rule can use a function by calling it via the FUNCTIONCALL MathVariable. Before calling the function, the MathVariables that hold the values for the function's input and output parameters must be defined. The MathVariable performing the function call will store the value for the return. Use the <Parameter> tags in the value to define the input and optional output parameters.

Please see the Function Rule section to view the elements to create a function to call.

TYPE = FUNCTIONCALL
Element | Attributes | Attribute Value | Element Value
<MathVariable> | TYPE | FUNCTIONCALL | <Parameters> tag that contain <Parameter> tags defining the parameters to the function. Parameters can be numeric or a variable name.
| FUNCTIONNAME | Name of the FUNCTION you are calling. |
<Parameters> |  |  |
<Parameter> | NAME | The parameter name from the FUNCTION. | The MathVariable that holds the value to pass to the function’s parameter.

## XML Example

<MathVariable VARIABLENAME="SurrenderCharge" TYPE="FUNCTIONCALL" FUNCTIONNAME="Function-SurrenderChargeForAnnuity" ROUND="2" DATATYPE="DECIMAL">

<Parameters>

<Parameter NAME="pEffectiveDate">EffectiveDateMV</Parameter>

<Parameter NAME="pPremiumPaymentArray">PremiumPaymentArray</Parameter>

<Parameter NAME="pPremiumDateArray">PremiumDateArray</Parameter>

<Parameter NAME="pSurrenderAmount">PolicyCashValueMV</Parameter>

<Parameter NAME="pMaxSurrenderYears">MaxSurrenderYearsMV</Parameter>

<Parameter NAME="pFreeAmountPercent">FreeAmountPercentMV</Parameter>

<Parameter NAME="oFreeAmount">FreeAmount</Parameter>

<Parameter NAME="oPremiumsOutsideOfSurrenderPeriod">PremiumsOutsideOfSurrenderPeriod</Parameter>

</Parameters>

</MathVariable>

##

## Schema Example

<MathVariable VARIABLENAME=”r;ReturnMV” TYPE=”r;FUNCTIONCALL” FUNCTIONNAME=”r;Function-XXXXX” DATATYPE="DECIMAL">

<Parameters>

<Parameter NAME=”r;pZZZZZ">Parameter1MV</Parameter>

<Parameter NAME=”r;oMMMMM">Output1MV</Parameter>

</Parameters>

</MathVariable>