FUNCTIONCALL

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.

FUNCTIONCALL: Elements and Attributes
TYPE = FUNCTIONCALL
Element Attributes Parent Element Descrption Element/Attribute 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.

 

CLEARVALUE

 

   

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.

<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 Schema

<MathVariable VARIABLENAME=”[Varibale Name]” 
TYPE="FUNCTIONCALL" FUNCTIONNAME="[Function Name]" 
DATATYPE="[Data Type]">
<Parameters>
<Parameter NAME="[Parameter Name]">[Math Variable]</Parameter>
<Parameter NAME="[Parameter Name]">[Math Variable]</Parameter>
</Parameters>
</MathVariable>

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>