# Use Case This lab implements one possible solution for the use case in the builder session. In the use case, the inputs (client order entry) and outputs (exchange trade entry) are left open to your imagination. In order to get the entire solution implemented within an hour, you could use a simple XML file as input for both order and trade entry. An example in Lab 3 demonstrates reading from file and making decision based on contents of the file. ## Setup You should have completed the Labs 1 and 2. Run the following commands to copy the data files to your project. ``` cd ~/environment/amazon-mq-enterprise-integration-patterns cp -r ~/environment/amazon-mq-enterprise-integration-patterns/data/orders ./router/src/data cp -r ~/environment/amazon-mq-enterprise-integration-patterns/data/templates ./router/src/data ``` In ./router/src/data, you would find orders directory and a templates directory. The router project you are building reads data from orders directory. Each file in orders directory represents a unique order for a given client. You were also provided two templates in templates directory.If you want to enter a US order, cp orderUS.xml for a Canadian order, cp orderCA.xml. Feel free to change the data in xml file to change client field as needed. Run the following commands for each order. Remember to replace N with a number. ``` cd ~/environment/amazon-mq-enterprise-integration-patterns/data/templates cp orderUS.xml ../orders/orderN.xml ``` ## Route implementation ``` /order/client = 'A' /order/client = 'B' /order/country = 'US' /order/country = 'CA' /trade/country = 'US' /order/country = 'CA' /trade/client = 'A' /trade/client = 'B' ```