Creating an implementation for a component

The component's implementation provides the mediation flow logic for the service.

The icon in the component indicates its implementation type.

If the component's implementation does not exist, there is an exclamation mark in the lower left corner of the component. The following StockQuote_MediationFlow component does not have an existing business process implementation:

Mediation flow component with no implementation

There is no exclamation mark on the component when its implementation exists. The following StockQuote_MediationFlow component has an existing mediation flow implementation:

Mediation flow component with an implementation

To create the implementation for a component, follow these instructions:
  1. In the assembly editor, click the component so that it is selected.
  2. Right-click the component and select Generate Implementation to create the implementation. If a new implementation is generated then it will be opened for editing.

    To use an existing implementation for the component, click Select Implementation and select one of the listed implementations. Note that the listed implementations are located within the same module. Implementations in other modules can be used in the module assembly by creating imports for the published services (exports).

    Note: The Select implementation action does not add or remove component interfaces or partner references so that it does not affect existing wires. However, after using this action, the component's existing interfaces or references might not match what is required by the selected implementation. In this case, there will be errors in the assembly diagram. Therefore, it is recommended that you do one of the following things to fix the errors:
    • Use the Synchronize Interfaces and References menu item on the component to synchronize to or from the implementation. See "Synchronizing the interfaces and references between components and implementations" in the related links at the end of this topic.
    • Manually add the required interfaces and references to the component, and remove or change the non-matching ones.
    • Drag and drop the implementation onto the canvas (to create a new component) and then rewire the assembly diagram so that the new component replaces the unimplemented component. Be sure to also copy the display name and qualifiers you defined in the original component to the new one. Afterwards, you can safely delete the replaced component.
    In both cases, if interfaces or partner references have been replaced, you may need to introduce a new mediation service to transform the interfaces.
Related concepts
Components and mediation modules
Related tasks
Mediation services: Opening an implementation
Business services: Replacing an implementation
Mediation services: Changing the implementation type of a component
Synchronizing the interfaces and references between components and implementations

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.