Message Sets: Changing the type of an element or attribute

You can change the type to a local element, global element, local attribute, or global attribute.

Before you begin

You must already completed the following tasks:

About this task

You can change the type of an element or attribute in your message model to another existing type, or you can create a new simple type or a new complex type.

To change the type of an element or attribute to an existing type:

Procedure

  1. Switch to the Integration Development perspective.
  2. Ensure that the Outline view is visible in the Integration Development perspective of the IBM® App Connect Enterprise Toolkit. If the Outline view is not visible, from the IBM App Connect Enterprise Toolkit menu, click Window > Show View > Outline.
  3. In the Outline view, click the element for which you want to change the type.
  4. Display the Properties tab of the Message Definition editor by clicking Properties in the lower-left corner of the editor area.
  5. In the Properties Hierarchy click Logical Properties > Global Element ( or Logical Properties > Local Element, Logical Properties > Global Attribute, or Logical Properties > Local Attribute).
    If necessary, expand Logical Properties by clicking +.
  6. In the Details view, in the Type property, click the new type that you require.
    Tip: If the type you require is not displayed, you can find it by clicking (More...) in the list. This displays the Type Selection window with additional options. If you know which type you require, specify the first letter in the text box at the top of the Type Selection window. Matching types are then displayed, making the selection process easier.
  7. When you have selected the type that you require, click OK.

Results

The change to the type is applied wherever the element or attribute occurs.

The task above explains how to switch to an existing type. If you want to create a new simple type or a new complex type, select (New Simple Type Restriction), (New Simple Type List), (New Simple Type Union), or (New Complex Type) in the Type list (see step 6 above). For information on how to create a new simple type or a new complex type see Message Sets: Adding a simple type to an element or attribute or Message Sets: Adding a complex type to an element.