I must admit advocating against the BizTalk ESB at times. However, this one feature called the Itinerary Broker Service is pure brilliance.
In short, consider this as a decide shape in workflow. The itinerary look at a certain value (in the context), and decides on the path – just like a decide shape in a workflow. For Itineraries this step is called the Broker Service. Based on a certain value (in the context), the respective itinerary step is chosen.
Elaboration (Itinerary Steps). Consider an itinerary with the following steps:
2. Routing (to send port rXYZ)
3. Routing (to send port rABC)
Here we want Step 1 (MessagingBroker) to evaluate a value on the context of the message. If true, execute step 2 – else execute step 3.
Provided two incoming message types (type1 and type2) are pushed into the ESB. If MessageType = type1, then ==> follow step 2, else follow step 3.
That’s all on the broker service. Remember that this works on the messaging level. Read more about this on the following MSDN link
Further Info (By Nick Hauenstein): Click here
Sample (By Nick Hauenstein): Click here
Happy designing 🙂