You are designing a mediation flow, and you want to pass customer information between mediation primitives in the flow. To do this, you will create a business object named CustomerInformation that contains a customerID attribute. You will identify this business object as a correlation context in the mediation flow. The value of this property can then be set or retrieved as an XPath expression for the duration of the request and response flow.
This sample shows how to specify a business object as the correlation context for the mediation flow, which creates the business object structure in the message. Once you have specified the correlation context, you need to set a value for the property that you want to persist; this is out of the scope of this sample.
To set the value for a property in the correlation context, you can use a Message Element Setter primitive, a Database Lookup primitive, a custom mediation primitive or an XSL Transformation primitive. For examples, see the sample "StockQuote for mediation flows", or the sample "Custom mediation for mediation flows".
This sample applies to mediation flows and can be run on WebSphere® ESB Server or WebSphere Process Server.
Mediation module
The diagram below shows the elements of the mediation module, named CorrelationContext, in the Assembly Editor: