Show TOC

Procedure documentationCreating a Function Locate this document in the navigation structure

Procedure

  1. Create a Function

    1. In the Object Manager panel, under the Detail section, choose the Assigned Objects tab.

      The Assigned Objects tab page opens.

    2. Choose Function from the Type field and choose Create Object.

    3. In the Object Creation dialog box that appears, enter Exec_PriceFac_And_Prem in the Name field and choose Create & Navigate To Object.

      The function is created and the edit function page appears.

  2. Assign Expression to the Function

    1. Under the Detail section, under Properties, choose Graphical Access (Graphical Access) next to the Top Expression field.

    2. In the context menu, choose   Select Expression  PRICEFAC_AND_PREMIUM_DT.

      The selected decision table is assigned as top expression to the function.

  3. Assign Context to the Function

    1. Under the Detail section, choose the Signature tab.

    2. Under Context, choose Add existing Data Object.

    3. In the Object Creation dialog box that appears, select LEVEL_OF_COVER and choose Select.

    4. Similarly, choose AGE.

      The data objects are added as the context.

  4. Assign Result to the Function

    1. Under the Detail section, choose the Signature tab.

    2. Under Result Data Object, choose Graphical Access (Graphical Access) next to Result Data Object.

    3. In the context menu, choose   Select Result Data Object   Struct_PriceFac_and_Premium  .

      The data object is added as the result.