Create a New Function

Oracle Insurance Rules Palette

You are here: Global Explorer and Business Rules > Functions > Create a New Function

 

Create a New Function

Functions are useful when a calculation or process needs to be repeated and made available for multiple transactions or business rules. Functions are also beneficial when only the output and result values are needed and not the intermediate values calculated by the function. 

 

Function Configuration Standards

Functions are made up of four components. They are listed below along with a description. 

 

  • Function names: Best practice dictates that names should always begin with Function- then the name of the function. No spaces are allowed in function names. Ex: Function-ModalFactors.   

  • Input parameters: Passed from the transaction or business rule into the function configuration. Best practice dictates that names should always begin with p.  Ex: pEffectiveDate.   

  • Output parameters: Passed from the function to the transaction or business rule that is calling the function. Best practice dictates that names should always begin with o. Ex: oFreeAmount.    

  • Return variable: The specific value the function is trying to obtain. Best practice dictates that names should always begin with r. Ex: rModalPremium.    

 

Steps to Create a New Function

  1. Go to Global Rules Explorer tab.

  2. Right-click on the Functions folder.

 

Function Right-Click

Function Right-Click Option

 

  1. Select New Global Rule for Category Functions.   

  2. Enter a name for the function and select Next. Function names should always begin with Function- then the name of the specific function. No spaces are allowed in the function name and the format should be camel case.  

  3. Functions are always created at a global level. The override fields will all be disabled; however, once a global function rule is created, it can be overridden.

  4. Select Function from TypeCode and then select Next.

  5. Fill out the template information and select Finish.

  6. Configure the function. Refer to the steps below for more details on configuring functions.
      

 

 

Steps to Configure a New Function

  1. Make sure the Function is open in the Configuration Area. If not, double-click the .xml file to open it. 

  2. Click the Parameters tab.

 

Function Parameters

Function Parameters Tab

 

  1. Enter the name of the function.

  2. Enter the return value. Make sure it starts with the letter r

  3. Select the Data type.

  4. Click the radio button for Yes or No if function is an array.  

  5. Click Add and click in the blank field to enter the input parameters.

    • input parameter name must begin with the letter p.

    • select the data type from the drop down box.

    • specify whether it is an array.

  6. Click Add and click in the blank field to enter the output parameters.

    • output parameter name must begin with the letter o.

    • select the data type from the drop down box.

    • specify whether it is an array.

  1. Click the Math tab and configure the math section. Use all functionality available in the MathVariables section of Math with the exception of LOG.   

  2.  

    :Refer to the Math Pane section for additional information on configuring in the Math Pane. 

     

  3. Check-in the XML file to save your changes to the database.

     

 

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