Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

And an example with contains, testing if the title contains the word Camel

Code Block
simple("${in.header.title} contains 'Camel'")

And an example with regex, testing if the number header is a 4 digit value:

Code Block
simple("${in.header.number} regex '\d{4}'")

And finally an example if the header equals any of the values in the list. Each element must be separated by comma, and no space around.
This also works for numbers etc, as Camel will convert each element into the type of the left hand side.

Code Block
simple("${in.header.type} in 'gold,silver'")

...