MEP Expression Language
Branch a Service Based on an Expression
One of the most common uses of EL is to change the flow of a service depending on the value of an expression. The Branch On Expression handler is specifically designed for this purpose.
The expression in the handler must resolve to a Boolean value (either true or false).
For example, the follow expression returns true when it is a Wednesday, and false for any other day:
${af:getNameOfDay(system.date) == "Wednesday" }
The handler branches the service based on the value.