Dispatcher Profiles
When working with profile chains, one often has to model branches in the processing sequence. That is, it must be decided at a certain point whether the further processing takes place with profile A or profile B.
For this purpose, it is useful to create a so-called dispatcher profile. So a profile that directs the further processing to the appropriate subsequent profile.
Profile 1 merely has to have several Response Routes of the type Message. In this case two. One of them calls profile 2 and the other one calls profile 3.
Calling a Response Route can be controlled via dependencies. Of course, if you are using a variable in the dependency, for example, you can only use variables that are defined in profile 1. These variables may also come from preceding profiles. In that case, you have to use the syntax mentioned earlier .
Alternatively, you can specify the name of the called profile in a single Response Route of type Message using a variable (type String).