Exercise - Data Traffic Routing
With this exercise, we continue our exploration of how to route messages. In the crash course we focused on the asynchronous routing. This exercise will broaden the scope of that view and will enable you to learn how to implement two typically used routing components within the platform. As a result the exercise is split up into two seperate components.
Should you have any questions, please contact academy@emagiz.com.
1. Prerequisites
- Completed all previous microlearnings on the subject.
- Access to my.emagiz.com with your own account and MFA configured.
- A model in which you can create this exercise.
2. Exercise
This exercise is a two-part exercise. In the first part of the exercise we will focus on how to configure a header value router. In the second part of the exercise we will focus on how to configure a recipient list router.
2.1 Header value router
To complete this exercise you need to execute the following steps:
- Open a flow in Create in which you want to add the Header value router
- Enter "Start Editing" mode and select the component called "Header value router"
- Add the component and configure it with the following configuration options:
- Header name to check against is: mlacade_messageType
- Header value to route on is: synchrns
- Output channel is: Any name you want to give it.
- Save your changes
2.2 Recipient list router
To complete this exercise you need to execute the following steps:
- Open a flow in Create in which you want to add the Header value router
- Enter "Start Editing" mode and select the component called "Header value router"
- Add the component and configure it with the following configuration options:
- Input channel: Any name you want to give it
- At least two output channels: Any name you want to give it.
- Save your changes
3. Solution
- Understand that each router has a different function.
- The header value router uses one specific value to route a message to a distinct output channel.
- The recipient list router uses one input message and distributes it over multiple output channels.
3.1 Solution - Header value router
In this short movie, you will find the workout of this exercise. Take a moment to review this one and compare it to your solution.
3.1 Solution - Recipient list router
In this short movie, you will find the workout of this exercise. Take a moment to review this one and compare it to your solution.