This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 843f88308d8 Add exchange properties to EIP docs. Lets try with routing slip first 843f88308d8 is described below commit 843f88308d8e54cc7d8d9f571b62741202874612 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Feb 20 14:48:19 2024 +0100 Add exchange properties to EIP docs. Lets try with routing slip first --- .../docs/modules/eips/pages/routingSlip-eip.adoc | 6 ++++++ .../eips/partials/eip-exchangeProperties.adoc | 23 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/routingSlip-eip.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/routingSlip-eip.adoc index edf50ae5916..38bb2de76c9 100644 --- a/core/camel-core-engine/src/main/docs/modules/eips/pages/routingSlip-eip.adoc +++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/routingSlip-eip.adoc @@ -26,6 +26,12 @@ TIP: See the `cacheSize` option for more details on _how much cache_ to use depe == Exchange properties +// eip exchangeProperties: START +include::partial$eip-exchangeProperties.adoc[] +// eip exchangeProperties: END + +== Manual Exchange properties (TODO remove me) + The following exchange properties are set on each `Exchange` that are sent by the routing slip: [width="100%",cols="3,1m,6",options="header"] diff --git a/core/camel-core-engine/src/main/docs/modules/eips/partials/eip-exchangeProperties.adoc b/core/camel-core-engine/src/main/docs/modules/eips/partials/eip-exchangeProperties.adoc new file mode 100644 index 00000000000..21c9c95eb9b --- /dev/null +++ b/core/camel-core-engine/src/main/docs/modules/eips/partials/eip-exchangeProperties.adoc @@ -0,0 +1,23 @@ +:tablespec: width="100%",cols="2,5a,^1,2",options="header" +:cellformats: '`[#_option_${path[2]}]*${path[2]}*` \ +|util.description(value) \ +|util.valueAsString(value.defaultValue) \ +|util.javaSimpleName(value.javaType)' +:requires: 'util=util/jsonpath-util.js' +include::jsonpathcount$example$json/{shortname}.json[queries='optioncount=nodes$.exchangeProperties[]'] + +ifeval::[{optioncount} == 0] +The {doctitle} eip has no exchange properties. +endif::[] +ifeval::[{optioncount} != 0] +The {doctitle} eip supports {optioncount} exchange properties, which are listed below. + + +[{tablespec}] +|=== +| Name | Description | Default | Type +|=== + +jsonpathTable::example$json/{shortname}.json['nodes$.exchangeProperties[]',{cellformats},{requires}] +endif::[] +