Construct a Data Type

In the decision designer, you can create a custom data type from scratch.

  1. Click Types Types icon on the sidebar.
  2. In the Types panel, click Create new type Add icon.
  3. In the New Type panel, enter the following information for the type definition.
    Field Description

    Name

    Enter a unique name for the type definition.

    Mode

    Specify the data type for the definition. The default is set to Text. You can select one of the built-in data types or choose to define a complex data type.

    To identify the data type as a list, select the Make a list check box.

    Allowed Values

    If you select the mode as Text, Number, Date and Time, or Duration, you can optionally define allowed values to restrict the data type definition to enumerated values or ranges.

    Define Type Attributes

    If you select the mode as Complex, define attributes within the type definition. See Define Attributes for a Complex Data Type.

    The new data type is now displayed in the Types panel, with options to edit or delete it.
  4. If required, repeat the steps to add more data types.

Define Attributes for a Complex Data Type

To define a complex data type, you must specify its attributes.

While defining a custom data type, if you select Complex in the Mode field, the Define Type Attributes section appears.

Define the attributes as follows.

  1. Click Add icon in the Define Type Attributes section.
    A default attribute is added to the table.
  2. Click the attribute to select it, and then click Edit Edit icon.
  3. In the Edit Type Attribute panel, enter the following information for the attribute.
    Field Description

    Name

    Enter a unique name for the attribute.

    Mode

    Specify the data type for the attribute. The default is set to Text. You can select one of the built-in data types or choose a custom data type.

    To identify the attribute as a list, select the Make a list check box.

    Allowed Values

    You can optionally define allowed values to restrict the attribute definition to enumerated values or ranges.

    Type

    If you select Other Type in the Mode field, select a previously-defined custom data type in this field.

  4. Click Back to return to the type-definition panel.
  5. To delete an attribute, click the attribute's row, and then click Delete Delete icon.