Creating the code table files

Complete the following steps to create a new pod type code table item and a pod binding item.

About this task

The CT_podType.ctx code table is used to declare a new pod.

The CT_podLoaderBindings.ctx declares the Java class that generates the XML fragment, which populates the pod.

Procedure

  1. From %CURAM_DIR%\EJBServer\components, create a new directory SPMAnalytics\codetable.
    %CURAM_DIR% is the Cúram installation directory, which by default is C:\IBM\Curam\Development.
  2. From %CURAM_DIR%\EJBServer\components\SPMAnalytics\codetable, create a code table file CT_podType.ctx. To create the file, templates are available, copy the CT_podType.ctx file from the component core, modify the file, and remove all existing <code> xml elements from the file.
  3. From the CT_podType.ctx code table file, enter a new code table item.
    Note: The java_identifier is used in the java implementation.
    For example:
    
    <code
        default="false"
        java_identifier="SICKNESSpod"
        status="ENABLED"
        value="PT24000">
        <locale
            language="en"
            sort_order="0">
            <description>Sickness Benefit Cases By Number of Diagnosis</description>
            <annotation/>
        </locale>
    </code>
    
  4. From %CURAM_DIR%\EJBServer\components\SPMAnalytics\codetable, create a code table file CT_podLoaderBindings.ctx. To create the file, templates are available, copy the CT_podLoaderBindings.ctx file from the component core, modify the file, and remove all existing <code> xml elements from the file.
  5. From the CT_podLoaderBindings.ctx code table file, enter the following code table item. The new code declares the Java class that generates the XML fragment that populates the pod.
    Important: The pod loader bindings value must be the same as the value specified in the pod type code table item.
    For example:
        
    <code
        default="false"
        java_identifier="MYSICKNESSCASESpod"
        status="ENABLED"
        value="PT24000">
        <locale
            language="en"
            sort_order="0">
            <description>curam.spmanalytics.sl.pods.impl.MyBenefitCasesPodLoader</description>
            <annotation/>
        </locale>
    </code>
    
  6. Open a command prompt and change to the %CURAM_DIR%\EJBServer directory.
  7. Run build ctgen to generate the code tables.
  8. Run build database to see the new code table records in the database.
  9. Save your configuration files.