This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit bf12809ab62aecd8de1a61f1e54707c737e0d497 Author: Otavio R. Piske <angusyo...@gmail.com> AuthorDate: Sat Feb 24 12:04:14 2024 +0100 CAMEL-20459: documentation fixes for the convertVariableTo EIP. Signed-off-by: Otavio R. Piske <angusyo...@gmail.com> --- .../docs/modules/eips/pages/convertVariableTo-eip.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/convertVariableTo-eip.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/convertVariableTo-eip.adoc index f6e476c0ab2..ee276f4e54e 100644 --- a/core/camel-core-engine/src/main/docs/modules/eips/pages/convertVariableTo-eip.adoc +++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/convertVariableTo-eip.adoc @@ -12,7 +12,7 @@ The ConvertVariableTo EIP allows you to convert a variable to a different type. include::partial$eip-options.adoc[] // eip options: END -NOTE: The type is a FQN classname (fully qualified), so for example `java.lang.String`, `com.foo.MyBean` etc. +NOTE: The type is a FQN class name (fully qualified), so for example `java.lang.String`, `com.foo.MyBean` etc. However, Camel has shorthand for common Java types, most noticeable `String` can be used instead of `java.lang.String`. You can also use `byte[]` for a byte array. @@ -24,7 +24,7 @@ include::partial$eip-exchangeProperties.adoc[] == Example -For example to convert the foo variable to `String`: +For example, to convert the foo variable to `String`: [tabs] ==== @@ -113,12 +113,12 @@ The ConvertVariableTo supports using xref:components:languages:simple-language.a Suppose you have multiple variables: -- region -- emea -- na -- pacific +- `region` +- `emea` +- `na` +- `pacific` -And that region points to either ema, na or pacific which has some order details. +And that region points to either `emea`, `na` or `pacific` which has some order details. Then you can use dynamic variable to convert the header of choice. Now suppose that the region variable has value `emea`: [tabs]