Create Function Override
After a global function rule is created, it can be overridden at a variety of levels. The override levels in order from highest to lowest level are listed below:
- Company
- Product (if Product functionality is turned on)
- Plan
- Transaction
- State (this level can only be used in conjunction with another override level.)
- Fund (this level can only be used if funds exist on the Plan chosen for the override.)
Steps to Create a Function Override
- Navigate to Global Explorer | Business Rules | Functions.
- Double-click the Functions folder to reveal a list of existing function rules.
- Right-click on the name of the function rule to override and click the option to override the function rule.
- Click Next, as the name of the override must be the same as the original function rule.
- Select the Company where the function rule override will apply. Selecting the Company will enable the available override levels for plans, transactions, states and funds associated with that particular company.
- Select any additional override levels.
- Click Finish. The new function rule override will display in the Configuration Area.
- Configure the override using the steps in the section below.
Steps to Configure a Function Override
-
Make sure the Function is open in the Configuration Area. If not, double-click the .xml file to open it.
-
Click the Parameters tab.
Function Parameters Tab
-
Enter the name of the function.
-
Enter the return value. It is a best practice to begin the value with the letter r.
-
Select the Data type.
-
Click the radio button for Yes or No if function is an array.
-
Click Add and click in the blank field to enter the input parameters.
-
input parameter name (best practice is to begin with the letter p)
-
select the data type from the drop down box.
-
specify whether it is an array.
-
Click Add and click in the blank field to enter the output parameters.
-
output parameter name (best practice is to begin with the letter o).
-
select the data type from the drop down box.
-
specify whether it is an array.
-
Click the Math tab and configure the math section. Use all functionality available in the MathVariables section of Math with the exception of LOG.
-
Check-in the XML file to save your changes to the database.
Important: Refer to the Math Pane section for additional information on configuring in the Math Pane.
The Rules Palette validates that the signature of the function override matches that of the global version before the override may be checked in. This is to enforce that the same signature used by the global function is applied across all overrides.