Set Context
The Set Context task provides a way to set the values for the message context properties of the target operation's input message and the message context properties of the mediation operation's output message.
This allows the mediation path to set the message context data (such as HTTP header or JMS user properties) for the output message of the mediation operation and the input message of the target operation.
The schema that appears on the Set Context task is configured in the Properties view of the mediation operation or target operation. On the Advanced tab, you can set the field Message Context Properties (outbound) of the mediation operation, or the Message Context Properties (inbound) field of the target operation.
General Tab
Use the General tab to specify a name and description for the task, and to identify the operation for which to set the context.
Field | Description |
---|---|
Name | Assign a name to the task, to identify the task in the mediation flow. This name appears in the tooltip that opens when you hover the cursor over the task icon in the mediation flow. |
Description | Describe the task briefly. This description appears in the tooltip that opens when you hover the cursor over the task icon in the mediation flow. |
Operation |
The operation for the Set Context task. The drop-down list is populated with all operations from the interfaces in the target interface list of the mediation flow. If the path is leading to the mediation Operation (for example, the Output path), you can select the mediation operation and set the context properties of the mediation output message. The Operation field identifies this case by identifying the interface. For example, [Mediation Interface]:HelloWorld/sayHello). |
Input Tab
he Input tab is a mapping panel for mapping data from the mediation exchange to the input fields of this task. See Transform Tasks for more information about using a mapping panel.
The input context for the target operation appears in the right side of the mapper. The task input structure provides context properties.