Map your request and response operations, add a persistent property
to the correlation context and wire the flow
In the Business Integration view, expand the CorrelationContext module.
Double-clicking the Assembly Diagram to
open the assembly editor.
In the module assembly diagram, right-click on the CorrelationContext_MediationFlow component
and choose Generate Implementation.
Click OK to generate the mediation flow
in CorrelationContext. This action opens CorrelationContext_MediationFlow in
the mediation flow editor.
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.
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.
{http://CorrelationContext}CustomerInformation now appears
in the Correlation Context field.
To complete the flow, wire Input t - getQuote :StockQuoteService to Callout
- getQuote : StockQuoteServicePartner in the request flow canvas.
Switch to the response flow. Wire Callout Response -
getQuote : StockQuoteServicePartner to Input Response
- getQuote :StockQuoteService.