Defining a Route

The steps for defining a route task are the same regardless of the type of route task you are using.

Prerequisites

Before creating a route, your mediation operation must contain the mediation interface and one or more target interfaces that contain operations between which you route messages.

Procedure

  1. Add a Route or XPath Route task to an existing input path. If you have not yet created any input paths in your mediation flow, draw the path between your mediation operation and one of the target operations that you want for the destination for the route.
    After a route task is added to an input path, a default case and an Otherwise case are created. Cases are the conditions that are evaluated to determine which sub-path a message takes. The Otherwise case is always present, and is used when all other cases evaluate to false.
    • Create more cases for the route, to create sub-paths to other target operations in your mediation flow.
  2. Add variables to hold the value of data from the message content or message context. These variables are used in the routing conditions you specify in each routing case.
  3. Specify the routing conditions for each case, using the variables that you have defined for the route.
  4. Use the Input tab on the route task to map data from the message context or message content to the variables you defined in step 2.