IBM Integration Bus, Version 10.0.0.3 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Message Sets: Adding a simple type

Add a simple type to your message model.

Before you begin

You must have completed the following tasks:

About this task

To add a simple type to your message model:

Procedure

  1. Switch to the Integration Development perspective.
  2. Ensure that the Outline view is visible in the Integration Development perspective of the IBM® Integration Toolkit. If the Outline view is not visible, from the IBM Integration Toolkit menu, click Window > Show View> Outline.
  3. In the Outline view, right-click Types then click either Add Simple Type Restriction, Add Simple Type List, or Add Simple Type Union on the pop-up menu.
    • For a restriction, a simple type of base type string is added, and assigned a default name.
    • For a list, a simple type of item type string is added, and assigned a default name.
    • For a union, a simple type with a single member type of string is added, and assigned a default name.
  4. Either type a new name for the simple type or press Enter to accept the default.

Results

You can now configure the simple type to your exact requirements.

If the simple type is a restriction:
  • You can change the base type using the editor Properties view.
  • You can set the value constraints associated with the simple type. See Message Sets: Setting value constraints.
  • You can replace the base type with a new local simple type. In the Outline view right-click simple type and click one of:
    • Add Simple Type Restriction. This option replaces the base type with a new simple type restriction, with a base type of string. You can configure the restriction as described in 'If the simple type is a restriction'. The result is that the original simple type becomes a restriction of a restriction.
    • Add Simple Type List. This option replaces the base type with a new simple type list, with an item type of string. You can configure the list as described in 'If the simple type is a list'. The result is that the original simple type becomes a restriction of a list. It appears as a list in the editor, because a restriction of a list is itself a list, but you can also set certain value constraints.
If the simple type is a list:
  • You can change the item type using the editor Properties view.
  • You can replace the item type with a new local simple type. In the Outline view right-click the simple type and click one of:
    • Add Simple Type Restriction. This option replaces the item type with a new simple type restriction, with a base type of string. You can configure the restriction as described in 'If the simple type is a restriction'. The result is that the original simple type becomes a list of a restriction.
    • Add Simple Type Union. This option replaces the item type with a new simple type union, with a single member type of string. You can configure the union as described in 'If the simple type is a union'. The result is that the original simple type becomes a list of a union.
If the simple type is a union:
  • If the member type of string is not required, in the Outline view right-click the string and click Delete.
  • You can add further members to the union. In the Outline view right-click the simple type and click one of:
    • Add Union Member Type. This option adds a union member that is an existing simple type. Use the type selection dialog to select the simple type required.
    • Add Local Member Type Restriction. This option adds a union member that is a new simple type restriction, with a base type of string. You can configure the restriction as described in 'If the simple type is a restriction' referred to earlier.
    • Add Local Member Type List. This option adds a union member that is a new simple type list, with an item type of string. You can configure the list as described in 'If the simple type is a list' referred to earlier.
    • Add Local Member Type Union. This option adds a union member that is a new simple type union, with a single member type of string. You can configure the new union as described in 'If the simple type is a union'.
  • New members are added to the end of the union. To change the order of a member, in the Outline view select the member and drag it to the required position in the union. All union members that are existing simple types must occur ahead of all members that are local restrictions, lists, and unions, so reordering is subject to this rule.

For further information about configuring message model objects see Message Sets: Configuring MRM message model objects.


ad02690_.htm | Last updated 2015-11-26 23:59:17