# 5.1 Route based on the content of the messages

## Business use case narrative

This sub-scenarios will cover the approaches of routing the messages into the relevant systems based
on the request content.

![5.1-Route-based-on-the-content-of-the-messages](images/5.1-Route-based-on-the-content-of-the-messages.png)


## Sub-Scenarios
- [5.1.1 Route messages based on the given Xpath](https://github.com/wso2/product-ei/tree/product-scenarios/product-scenarios/5-Route-messages-between-systems/5.1-Route-based-on-the-content-of-the-messages/5.1.1-Route-messages-based-on-the-given-Xpath)
- [5.1.2 Route messages based on the given regular expressions](https://github.com/wso2/product-ei/tree/product-scenarios/product-scenarios/5-Route-messages-between-systems/5.1-Route-based-on-the-content-of-the-messages/5.1.2-Route-messages-based-on-the-given-regular-expressions)
- [5.1.3 Route messages based on the request with the JSON format](https://github.com/wso2/product-ei/tree/product-scenarios/product-scenarios/5-Route-messages-between-systems/5.1-Route-based-on-the-content-of-the-messages/5.1.3-Route-messages-based-on-the-request-with-the-JSON-format)
- [5.1.4 Route messages based on the request with the CSV format](https://github.com/wso2/product-ei/tree/product-scenarios/product-scenarios/5-Route-messages-between-systems/5.1-Route-based-on-the-content-of-the-messages/5.1.4-Route-messages-based-on-the-request-with-the-CSV-format)
- [5.1.5 Route messages based on the given endpoint](https://github.com/wso2/product-ei/tree/product-scenarios/product-scenarios/5-Route-messages-between-systems/5.1-Route-based-on-the-content-of-the-messages/5.1.5-Route-messages-based-on-the-given-endpoint)
- [5.1.6 Route messages based on the conditions](https://github.com/wso2/product-ei/tree/product-scenarios/product-scenarios/5-Route-messages-between-systems/5.1-Route-based-on-the-content-of-the-messages/5.1.6-Route-messages-based-on-the-conditions)

