Regenerating LOB-specific endpoints

Regenerate LOB-specific endpoints after you resolve compilation errors in the files generated for the LOB-specific endpoints.

PolicyCenter will not automatically regenerate endpoints for the installed product if the only change you have made is to the codegen config file. Also, LOB-specific endpoints that are no longer needed after an update are not removed until you remove the previously generated files.

Note: For products that were imported into APD app as part of Cloud Retrofit, see Cloud Retrofit with APD App for the steps to regenerate the endpoints.

Regenerate endpoints by first removing the template

You can trigger endpoint regeneration by removing and re-importing the product template, and then generating the endpoints. You can only use this method when PolicyCenter is running.

Before you begin

Verify that the PolicyCenter Product Design Mode is set to Developer. To view or set the product design mode, go to Options > Preferences.

Procedure

  1. Navigate to the Product Management screen.
  2. Click the APD Managed tab.
  3. In the list of products, click the desired product. Then click Remove Product. The product is removed from the APD Managed tab.
  4. Reimport the template.
    1. Click Import Template.
    2. Click Browse, then navigate to the template's location and select the template.
    3. Click Update. It may take a few seconds for the template to load. Once it has been loaded, the product reappears on the APD Managed tab.
  5. Regenerate the endpoints.
    1. Click Generate Product Code.
    2. In the Generate Options section of the Review Product Elements screen, choose to generate System APIs - Code.
    3. Click Complete Generation.

Regenerating endpoints by first removing the generated files

You can trigger endpoint regeneration by removing the generated LOB-specific endpoint files, updating the template, and then generating the endpoints. This method does not require PolicyCenter to be running.

If you generate LOB-specific endpoints with compile errors, and then you stop PolicyCenter, PolicyCenter will not restart until the compile errors are fixed or removed. At this point, the easiest option is usually to remove the generated files.

Complete the following steps to remove generated files and then regenerate endpoints:
  1. Search for and remove all files with the following in their names:
    • <productCode>_gen
    • <productCode>_ext
    These files exist in the following directories under the modules\configuration directory:
    • config\integration\apis\ext\job\v1
    • config\integration\apis\ext\policy\v1
    • config\integration\apis\ext\policyperiod\v1
    • config\integration\mappings\ext\policyperiod\v1
    • config\integration\schemas\ext\policyperiod\v1
    • config\integration\updaters\ext\policyperiod\v1
  2. Remove the following directory and its contents:
    • gsrc\gw\rest\ext\pc\policyperiod\<productCode>\v1
  3. Restart PolicyCenter.
  4. Verify that the PolicyCenter Product Design Mode is set to Developer. To view or set the product design mode, go to Options > Preferences.
  5. On the Product Management screen, select the product.
  6. Select Update Product > From Template.
  7. On the Load Product screen, select Browse and select the template file. Then, select Update.
  8. On the Product Management screen, select Generate Product Code.
  9. In the Generate Options section of the Review Product Elements screen, choose to generate System APIs - Code.
  10. Select Complete Generation.