The switch mediator will evaluate the given source xpath expression into its string value, and match it against the given regular expressions. If the specified cases does not match and a default case exists, it will be executed.
Switch Mediator
Here are the options to configure the Switch Mediator.