Previous Topic: Create an InterfaceNext Topic: Add a Web Service Definition


Customize the Interface

You can customize an interface in the Editor view. Use the Editor view to manage the mapping functions for all the parameters that are associated with the current interface.

You can customize the import view in the Input Mapping tab and the export view in the Output Mapping tab in the Editor view.

To demonstrate the use of custom interfaces, the following illustration shows the Action Diagram of the Employee Detail Procedure Step from the sample model with both the Import Views and Export Views expanded:

Action Diagram

You can customize one or more interfaces using the import and export views as defined in the preceding procedure step.

Follow these steps:

  1. Open a model in Gen Studio in the PStep Interface Designer perspective.
  2. Expand the model in the Interfaces tab to show the Business System, Procedure Steps, and Interfaces.
  3. Double-click the interface in the Interfaces view.

    The Editor view opens and displays the parameters of the import and export views as defined by its associated procedure step. If you double-click more than one interface, each interface displays on a different tab in the Editor view.

    PStep Interface Designer Editor

  4. Change the values, as needed, for those parameters that are associated with the newly created custom interface using the Input Mapping tab and the Output Mapping tab:
    Parameter

    Defines the name of the parameter. You can change the name of this parameter to add a user-friendly name including view names.

    Gen Name

    Identifies the original name of the parameter. This column is read-only.

    Gen Attribute

    Identifies the data type of the parameter. This column is read-only.

    XSD Data Type

    Specifies the data type of the parameter that conforms to the XML schema definition. Map the Gen Data Type to the XSD Data Type.

    Mapping Style

    Specifies the mapping style of the parameter.

    Default: <None>

    • <None>: The parameter is not exposed to the end user as it is eliminated from the interface. Set the Mapping Style to <None> to omit the parameter.
    • <Literal>: The parameter is not exposed to the end user but the value you add in the Mapping field is hard-coded to this parameter.
    • <Variable>: The parameter is exposed to the end user and allows the end user to enter data into this parameter. You can change the name of this parameter to add a user-friendly name.

    To change the mapping style of all the parameters in an entity or group view simultaneously, you can select the mapping style cell for the entity or group view.

    Example:

    To change the Mapping Style of the ImportEmployee parameter, select the Mapping Style from the drop-down and press the Enter key.

    Group view change

    The Mapping Style for the parameter is changed.

    Group view after

    Mapping

    Defines any data specific to the parameter of the interface. You can edit this field only if you select the Mapping Style value as <Literal>.

  5. Save the model to keep all your changes.