Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Expression languages

rust-camel evaluates expressions and predicates against Exchange data through pluggable languages. Each language compiles a script into an executable that pipeline steps invoke.

Every language implements the Language trait from camel-language-api. Languages register into CamelContext by name at startup. Pipeline steps resolve them by name to evaluate predicates and expressions.

Available languages

LanguageCrateUse case
Simplecamel-language-simpleHeader, body, and property access with ${...} syntax
JSONPathcamel-language-jsonpathQuery JSON bodies with $. syntax
XPathcamel-language-xpathQuery XML message bodies
JavaScriptcamel-language-jsFull JS expressions via embedded engine
Rhaicamel-language-rhaiRust-native embedded scripting
MiniJinjacamel-language-minijinjaJinja2-compatible templating

Reference: Languages overview · Language SPI