< Previous

Building the mediation flow

Map your request and response operations, add a persistent property to the correlation context and wire the flow

  1. In the Business Integration view, expand the CorrelationContext module.
  2. Double-clicking the Assembly Diagram to open the assembly editor.
  3. In the module assembly diagram, right-click on the CorrelationContext_MediationFlow component and choose Generate Implementation.
    Screenshot of generate implementation selection
  4. Click OK to generate the mediation flow in CorrelationContext. This action opens CorrelationContext_MediationFlow in the mediation flow editor.
  5. In the Operation connections section, wire StockQuoteService interface's getQuote operation to StockQuoteServicePartner reference's getQuote operation. You will see the request flow with an input and a callout for the operation.
    Screenshot of mapping operations
  6. Add the CustomerInformation business object to the correlation context of Input: Request - getQuote :StockQuoteService. This will allow the property customerID to persist in the message flow. Click on Input: Request - getQuote :StockQuoteService and switch to the Details tab in the Properties view. In the Correlation Context field, click Browse. Select CustomerInformation under matching data types, and double click.
    Screenshot of adding correlation context field
  7. {http://CorrelationContext}CustomerInformation now appears in the Correlation Context field.
    Screenshot of Input node properties view
  8. To complete the flow, wire Input t - getQuote :StockQuoteService to Callout - getQuote : StockQuoteServicePartner in the request flow canvas.
    Screenshot of wired Request Flow
  9. Switch to the response flow. Wire Callout Response - getQuote : StockQuoteServicePartner to Input Response - getQuote :StockQuoteService.
    Screenshot of wired Response Flow
  10. Save your changes.

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