You are here: Transaction Rules > Transaction Elements > Math Element > FUNCTIONCALL

Oracle® Insurance XML Configuration Guide Release 9.4.1.0 E23637_01

# FUNCTIONCALL

## Description

A transaction or business rule can execute a configured function, as opposed to executing a system-defined function, by calling it via the FUNCTIONCALL MathVariable. Before calling the function(FunCall), the math variables that hold the values for the function's input and output parameters must be defined. The math variable performing the function call will store the value for the return. Use the <Parameter> tags to define the input and 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 must be math variables.
| 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 or from 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>

Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices

Open table of contents