Creating Configuration Types

Configuration types allow you to define properties and bind them with data types. You can also associate the configuration type properties with certain validations, define user interface behavior, and more.

Context

Configuration types are based on a JSON schema, but you can create them in the SAP Data Intelligence Modeler application. You can reuse configuration types. For example, reuse the type definition to define the operator configurations or to define specific parameters within the definition of the operator configuration.

The Modeler also provides global configuration types, which are associated with the configuration parameters of certain default operators (base operators) available within the application.

To create a new configuration type, perform the following steps in the Modeler application:

Procedure

  1. Open the Configuration Types tab in the navigation pane and choose (Create Configuration Type).
  2. Choose (Add property). in the Properties pane.
    Configuration types can have more than one property.
  3. Type a name in Name and a display name in Title. Optionally enter a description in Description.
    The application uses the value in the Title as the display name for the property in the user interface.
  4. Select the required data type value from the Type list.
    Select from the following list of types:
    • String

    • Object

    • Array

    • Number

    • Boolean

    • Integer

    • Custom Type

  5. Complete the property “helpers” based on the property type you select.

    Helpers identify the property type and define values accordingly.

    The following table lists each helper option, the applicable data type to which the option applies, and further instructions.

    Helper Option

    Data Type

    Instructions

    UI Control

    String
    Object
    Array

    Select one of the following options from the dropdown list:

    • Auto (requires additional settings in Format and Value Help)

    • Text area

    • Local file browser

    • Custom dialog (requires additional settings in View Path, Dialog Parameters, and Launch Icon)

    Format

    String

    Select one of the following options from the dropdown list:

    • Datetime

    • Email

    • URI

    • Password

    • com.sap.dh.connection.id

    Applicable only when you select Auto for UI Control.

    Value Help

    String

    Select one of the following options from the dropdown list:

    • None

    • Pre-defined Values (requires additional settings in Values)

    • Value from Service (requires additional settings in URL, Value Path, and Data Path)

    Applicable only when you select Auto for UI Control.

    Values

    String

    The application includes the values that you enter in the user interface dropdown list.

    Applicable only when you select Pre-defined Values for Value Help.

    URL

    String

    Specify a service URL to the property values from the REST API. The application displays the response from the service call as auto-suggestions to users. The response from the REST API is an array of strings or an array of objects.

    Applicable only when you select Value from Service for Value Help.

    Value Path

    String

    If the response from the REST API is an array of objects, enter the name of an object property. The Modeler renders the values of this object property in a dropdown list in the user interface to define the operator configuration.

    Applicable only when you select Value from Service for Value Help.

    Data Path

    String

    If the response from the REST API is object, enter the name of an object property.

    Applicable only when you select Value from Service for Value Help.

    View Path

    String
    Object
    Array

    Enter the path to the view to show in the dialog.

    Applicable only when you select Custom Dialog for UI Control.

    Dialog Parameters

    String
    Object
    Array

    Choose the icon at the end of the text box and enter dialog parameters to show in the user interface.

    Applicable only when you select Custom Dialog for UI Control.

    Launch Icon

    String
    Object
    Array

    Enter the icon class name.

    Applicable only when you select Custom Dialog for UI Control.

    Required

    All data types

    When on (true), your users must provide values to the property in the user interface; the property values can't be empty.

    Read Only

    All data types

    When on (true), the Modeler application doesn't allow edits to the property.

    Visibility

    All data types

    Select from the following options:

    • Visible: all properties are visible in the user interface.

    • Hidden: all properties are hidden in the user interface.

    • Conditional: properties are visible based on set conditions. The application performs AND operations of all conditions to determine whether the property is visible or hidden.

    Item Type

    Array

    Select one of the following options from the dropdown list:

    • String

    • Number

    • Object

    • Custom

    Type

    Custom Type

    Custom data types enable you to set the data type of the property to another user-defined type.

    Select a value for Type from the dropdown list. The Modeler populates the Type dropdown list with the existing global schema types.

  6. Choose (Save) and enter a name that includes the fully qualified path to the new configuration type, such as com.sap.others.<typename>.

    The Modeler stores the configuration type in a folder structure in the repository.

  7. Optional: Choose (Save As) to save another instance of the configuration type, and enter a different name with the fully qualified path.
  8. Optional: Choose JSON to view the content of the JSON file.