71.2. 变量
| 变量 | 类型 | 描述 |
|---|---|---|
| camelId | 字符串 |
|
| camelContext.OGNL | 对象 |
|
| exchange | Exchange |
|
| exchange.OGNL | 对象 |
|
| exchangeId | 字符串 |
|
| id | 字符串 |
|
| messageTimestamp | 字符串 |
|
| 正文(body) | 对象 |
|
| body.OGNL | 对象 |
|
| bodyAs(type) | 类型 |
|
| bodyAs(type).OGNL | 对象 |
|
| bodyOneLine | 字符串 |
|
| mandatoryBodyAs(type) | 类型 |
|
| mandatoryBodyAs(type).OGNL | 对象 |
|
| header.foo | 对象 |
|
| header[foo] | 对象 |
|
| headers.foo | 对象 |
|
| headers:foo | 对象 |
|
| headers[foo] | 对象 |
|
| header.foo[bar] | 对象 |
|
| header.foo.OGNL | 对象 |
|
| headerAs(key,type) | 类型 |
|
| 标头 | map |
|
| exchangeProperty.foo | 对象 |
|
| exchangeProperty[foo] | 对象 |
|
| exchangeProperty.foo.OGNL | 对象 |
|
| sys.foo | 字符串 |
|
| sysenv.foo | 字符串 |
|
| env.foo | 字符串 |
|
|
| 对象 |
|
|
| 对象 |
|
| exception.message | 字符串 |
|
| exception.stacktrace | 字符串 |
|
| date:_command_ | Date |
|
| date:_command:pattern_ | 字符串 |
|
| date-with-timezone:_command:timezone:pattern_ | 字符串 |
|
| bean:_bean expression_ | 对象 |
|
|
| 字符串 |
|
| routeId | 字符串 |
|
| stepId | 字符串 |
|
| threadName | 字符串 |
|
| hostname | 字符串 |
|
| ref:xxx | 对象 |
|
| type:name.field | 对象 |
|
| null | null | represents a null |
| random(value) | 整数 |
|
| random(min,max) | 整数 |
|
| collate(group) | list |
|
| skip(number) | ITerator |
|
| messageHistory | 字符串 |
|
| messageHistory(false) | 字符串 |
|