Before you start:
To complete this task, you must
have completed the following tasks:
This task assumes that you have previously added the element to which
you are adding the complex type to your message model.
When you add a complex type to an element, you can either create
a new complex type or derive a new complex type from an existing base type.
To
add a new complex type to an element:
- Switch to the Broker Application Development
perspective.
- Ensure that the Outline view is visible in the Broker Application Development
perspective of
the workbench. If the Outline view
is not visible, from the workbench menu, click Window
> Show View > Outline.
- In the Outline view, click the element to which you want to add
a new complex type.
- In the Message Definition editor, click the Properties tab.
- In the Properties Hierarchy, click Logical Properties
> Global Element.
- In the Details view, in the Type list, click (New
Complex Type) to display the New Complex Type window.
- If you want to create a new local complex type, click Create
a Local Complex Type then, in the Composition list,
click the option that you require.
- If you want to derive a new local complex type from an existing
base type:
- Click Derive a new Local Complex Type from existing
base type.
- In the Base Type list, click the base
type that you want to use. Depending on the base type you
select, the Composition and Derived By lists
might become active.
- If the Composition and Derived
By lists are active, click the options that you require in both
lists.
- If you want to add the new complex type as a global complex type,
select the Create as Global Complex Type check box,
and specify a name for your new complex type in the Name field.
- Click OK to close the New Complex
Type window and add the new complex type to your message model.
Any changes that you make are reflected throughout where the element
to which you are adding the complex type occurs.