IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Get started with IBM Integration Designer > Create a new project

Assembling services: Customer enquiry example

This example shows how you can assemble a service to process a customer enquiry.

When the customer ID is supplied, the customer's portfolio information is returned. Processing this enquiry requires two additional services: one to access the customer's account information and another to find out the current stock price. The following picture shows this solution:

In the customer enquiry example, three components provide the required business services:

The three components require implementations that perform the processing.

For example, the CustomerQuery component can be a business process that retrieves the customer portfolio information and stock price.

All three components must have interfaces so that they can be used by other components:

In the example, one of the components, CustomerQuery, uses the services of two other components. It has two partner references:

The CustomerQuery component has two partner references and the wires point to the target components that have the referenced interfaces. The assembly diagram in the following illustration shows the three components wired together:

The implementations of components used in a module's assembly reside within the module. Components belonging to other modules can be used through imports. Components in different modules can be wired together by publishing the services as exports that have their interfaces, and then dragging the exports into the required assembly diagram to create imports.

You can add a stand-alone references node to provide access to the CustomerQuery service. This structure helps you to create JavaServer pages that use the stand-alone references to access CustomerQuery. In the assembly editor, the node for the stand-alone references has an arrow icon,

. The following image shows the addition of the stand-alone references to access the CustomerQuery service:

The following image shows StockQuote as an import rather than a component, which indicates that this service, which provides stock prices, is being supplied from another module.

You can make the CustomerQuery service available to other modules by creating an export. The following image shows the export, CustomerQueryExport, which is created from the CustomerQuery component's interface:

Create a new project


Related concepts:
Workspaces
Create modules and libraries
Components


Related tasks:
Create and wiring components
Work with implementations
Adding notes
Setting assembly editor preferences
Finding errors in the assembly diagram
Create exports
Create imports
Wiring nodes in the assembly diagram