Version 5.3.1
 —  Natural Business Services Administration  —

Using Custom Models with Natural Business Services

When using the Business Service wizard to generate services, you can select Natural Construct models you have created. This section describes how to set up the custom model for use with the Business Service wizard.

Note:
The custom model must generate a Natural subprogram.

Start of instruction setTo set up the custom model:

  1. Create a subprogram and PDA that Natural Business Services will use when the Business Service wizard is called.

    This subprogram associates fields in the wizard to fields in the model parameter data area (PDA).

    Note:
    For an example of a subprogram and data area, refer to WTOBR2 and WTIOG2DT in the SYSCST library. The example is based on a custom model created from the Object-Maint-Subp model.

  2. Add an entry in the models.xml file for the plug-in.

    The models.xml file allows you to define which custom models are available in the wizard. For more information, refer to the comments and example in the models.xml file. This file is located in the NBS Eclipse plug-in subfolder or the installation folder (for the Natural plug-in).

The custom model will now be available for selection when a user selects the By using custom code generation model option on the first Business Service wizard panel. The model fields are displayed in a grid and the user can enter the required values to create the service.

Top of page