Business services: Creating an implementation for a component

The component's implementation provides the business logic for the service.

The icon in the component indicates its implementation type; for more information on components, see related concept on "Components and modules".

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

Process component with no implementation

There is no exclamation mark on the component when its implementation exists. The following CustomerQuery component has an existing business process implementation:

Process 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. If there is no implementation type for the component, you have to select a type for this action.

    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. Try these actions 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 name and qualifiers you defined in the original component to the new one. Afterwards, you can safely delete the replaced component.
    If interfaces or partner references have been replaced, you may need to add interface maps to rewire.
Related concepts
Business services: Components and modules
Related tasks
Business services: Opening an implementation
Business services: Replacing an implementation
Business services: Changing the implementation type of a component
Synchronizing the interfaces and references between components and implementations

Related information

Tutorial: Wire components using the assembly editor

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