Show TOC

Procedure documentationDefining a Complex Data Type (Freely-Modeled) Locate this document in the navigation structure

Procedure

  1. On the design maintenance screen of the ES Builder, create a data type in your namespace (see also: Creating an Object).

  2. Choose the Type Definition tab page. The XSD editor automatically selects the category Simple Type when you create a data type.

  3. To insert a subnode, call the context menu for the root element and in the Insert (Insert) menu, choose either Insert Subelement or Insert Lines. This is only possible if the root element has not yet been assigned a type.

    Note Note

    If a type is already entered in the Type column, you can delete it by choosing Reset (Reset) in the list box for the cell.

    End of the note.
  4. The type then automatically changes to Complex Type. Using the context menu, insert further elements and attributes to build up the structure of your new complex type. Note the following:

    • Unlike elements, attributes cannot have subnodes. Therefore, you can build up structures using elements, but you use attributes to specify additional information for an element in a message. More information: Data Types in the Enterprise Services Repository (Elements and Attributes section).

    • Subelements can only be inserted for elements that do not have a type.

    • If a single substructure becomes too complicated, you are recommended to use multiple smaller data types instead, especially when these can then be used elsewhere. To reference other data types, choose Data Types in the list box for the Type column.

  5. To define the elements of the simple data type in the Details column, choose F4.

    Note Note

    Before you can use a facet, you must have selected a built-in data type in the Type column for your simple data type, element, or attribute. Otherwise the input field in the Details column remains locked. More information: XSD Editor for Freely-Modeled Data Types

    End of the note.
  6. As long as the element concerned is not the root element, you can change the field name by clicking it.