In the Java DSL, there are two styles for using the simple() command
in a route. You can either pass the simple() command as an argument to
a processor, as follows:
from("seda:order")
.filter(simple("in.header.foo"))
.to("mock:fooOrders");Or you can call the simple() command as a sub-clause on the
processor, for example:
from("seda:order")
.filter()
.simple("in.header.foo")
.to("mock:fooOrders");







