...
Variable | Type | Description | ||
---|---|---|---|---|
camelId | String | Camel 2.10: the CamelContext name | ||
exchangeId | String | Camel 2.3: the exchange id | ||
id | String | the input message id | ||
body | Object | the input body | ||
in.body | Object | the input body | ||
body.OGNL | Object | Camel 2.3: the input body invoked using a Camel OGNL expression. | ||
in.body.OGNL | Object | Camel 2.3: the input body invoked using a Camel OGNL expression. | ||
bodyAs(type) | Type | Camel 2.3: Converts the body to the given type determined by its classname. The converted body can be null. | ||
mandatoryBodyAs(type) | Type | Camel 2.5: Converts the body to the given type determined by its classname, and expects the body to be not null. | ||
out.body | Object | the output body | ||
header.foo | Object | refer to the input foo header | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1a96f98de8b55592-e7ce9fdb-49f14a4e-bb5695c5-6fd874a17ac8fdd8a2fa84e0"><ac:plain-text-body><![CDATA[ | header[foo] | Object | Camel 2.9.2: refer to the input foo header | ]]></ac:plain-text-body></ac:structured-macro> |
headers.foo | Object | refer to the input foo header | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e2c0000f9ed2999b-cb79f4e9-4c2a48ee-9725b8b9-f7c33bb8714799806750e21a"><ac:plain-text-body><![CDATA[ | headers[foo] | Object | Camel 2.9.2: refer to the input foo header | ]]></ac:plain-text-body></ac:structured-macro> |
in.header.foo | Object | refer to the input foo header | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="76d34bbe954129cd-6477f164-454b4b46-baa886fd-1a2e9cb53cc11173d4d07ed8"><ac:plain-text-body><![CDATA[ | in.header[foo] | Object | Camel 2.9.2: refer to the input foo header | ]]></ac:plain-text-body></ac:structured-macro> |
in.headers.foo | Object | refer to the input foo header | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ed73b51dd28eb07b-461c28b3-45a344de-bcd9ba26-3d4c5cba6f5d2ef202410904"><ac:plain-text-body><![CDATA[ | in.headers[foo] | Object | Camel 2.9.2: refer to the input foo header | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="30618a5467c546fa-8886a40f-4a4643b4-94929571-8027a633525a341ae650ef84"><ac:plain-text-body><![CDATA[ | header.foo[bar] | Object | Camel 2.3: regard input foo header as a map and perform lookup on the map with bar as key | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="80e321a9df5125fc-ace301a8-46504f89-ac338991-a8b2ae32cea468116bd33938"><ac:plain-text-body><![CDATA[ | in.header.foo[bar] | Object | Camel 2.3: regard input foo header as a map and perform lookup on the map with bar as key | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="392d3cf2ff1e5327-a6ba1141-40a34556-a2029ab1-d0a6d4f955ba2874da13167f"><ac:plain-text-body><![CDATA[ | in.headers.foo[bar] | Object | Camel 2.3: regard input foo header as a map and perform lookup on the map with bar as key | ]]></ac:plain-text-body></ac:structured-macro> |
header.foo.OGNL | Object | Camel 2.3: refer to the input foo header and invoke its value using a Camel OGNL expression. | ||
in.header.foo.OGNL | Object | Camel 2.3: refer to the input foo header and invoke its value using a Camel OGNL expression. | ||
in.headers.foo.OGNL | Object | Camel 2.3: refer to the input foo header and invoke its value using a Camel OGNL expression. | ||
out.header.foo | Object | refer to the out header foo | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7fc4ca3416fe3a77-d2d2f755-499841bf-b2ad9d95-712d8c74bab5433650641afb"><ac:plain-text-body><![CDATA[ | out.header[foo] | Object | Camel 2.9.2: refer to the out header foo | ]]></ac:plain-text-body></ac:structured-macro> |
out.headers.foo | Object | refer to the out header foo | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="2a713a21a58149b8-fd30c96c-414e4255-b2f78eb4-31520a96f2bf4cc3453f1a09"><ac:plain-text-body><![CDATA[ | out.headers[foo] | Object | Camel 2.9.2: refer to the out header foo | ]]></ac:plain-text-body></ac:structured-macro> |
headerAs(key,type) | Type | Camel 2.5: Converts the header to the given type determined by its classname | ||
headers | Map | Camel 2.9: refer to the input headers | ||
in.headers | Map | Camel 2.9: refer to the input headers | ||
property.foo | Object | refer to the foo property on the exchange | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6378fb89873f9978-15deedba-45cf43cf-97389f8d-aa3e6ff0dd8b3062ae66dad4"><ac:plain-text-body><![CDATA[ | property[foo] | Object | Camel 2.9.2: refer to the foo property on the exchange | ]]></ac:plain-text-body></ac:structured-macro> |
property.foo.OGNL | Object | Camel 2.8: refer to the foo property on the exchange and invoke its value using a Camel OGNL expression. | ||
sys.foo | String | refer to the system property | ||
sysenv.foo | String | Camel 2.3: refer to the system environment | ||
exception | Object | Camel 2.4: Refer to the exception object on the exchange, is null if no exception set on exchange. Will fallback and grab caught exceptions ( | ||
exception.OGNL | Object | Camel 2.4: Refer to the exchange exception invoked using a Camel OGNL expression object | ||
exception.message | String | Camel 2.0. Refer to the exception.message on the exchange, is null if no exception set on exchange. Will fallback and grab caught exceptions ( | ||
exception.stacktrace | String | Camel 2.6. Refer to the exception.stracktrace on the exchange, is null if no exception set on exchange. Will fallback and grab caught exceptions ( | ||
date:command:pattern | String | Camel 1.5. Date formatting using the | ||
bean:bean expression | Object | Camel 1.5. Invoking a bean expression using the Bean language. Specifying a method name you must use dot as separator. In Camel 2.0 we We also support the ?method=methodname syntax that is used by the Bean component. | ||
properties:locations:key | String | Camel 2.3: Lookup a property with the given key. The | ||
threadName | String | Camel 2.3: Returns the name of the current thread. Can be used for logging purpose. | ||
ref:xxx | Object | Camel 2.6: To lookup a bean from the Registry with the given id. |
...
Code Block |
---|
simple("${body.address.zip} > 1000") |
Operator support
...
We added a basic set of operators supported in the simple language in Camel 2.0. The parser is limited to only support a single operator.
...
Code Block | ||||
---|---|---|---|---|
| ||||
from("direct:order").transform().simple("OrderId: ${bean:orderIdGenerator.generateId}").to("mock:reply"); |
And in Camel 2.0 we We can use the ?method=methodname
option that we are familiar with the Bean component itself:
...