appendix A Simple, the expression language
Camel offers a powerful expression language, which was called Simple because back in the earlier days, it wasn’t very powerful. It’s evolved to become much more since then, but don’t worry: it’s still simple to use. The Simple language is provided out of the box in the camel-core JAR file, which means you don’t have to add any JARs on the classpath to use it.
A.1 Introducing Simple
In a nutshell, the Simple expression language evaluates an expression on the current instance of Exchange
that’s under processing. The Simple language can be used for both expressions and predicates, which makes it perfect to use in your Camel routes.
For example, the Content-Based Router EIP can use the Simple language to define predicates in the when
clauses, as shown here:
The equivalent XML DSL example is as follows: