Thanks again. That made the code a bit cleaner. It took a minute to figure
out the exact syntax but that makes the code now:
${body.mypropertytovalidate} in
'STRING1,STRING2,STRING3'
--
View this message in context:
http://camel.465427.n5.nabble.com/Define-an-array
ng my own solution. With the validate
> DSL I was able to do the following instead:
>
> ${body.mypropertytovalidate} regex
> '\b(STRING1|STRING2|STRING3)\b'
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Define-an-array-in-
ew this message in context:
http://camel.465427.n5.nabble.com/Define-an-array-in-simple-tp5770637p5770691.html
Sent from the Camel - Users mailing list archive at Nabble.com.
and I get an exception like the following:
> Caused by: org.apache.camel.NoTypeConversionAvailableException: No type
> converter available to convert from type: java.lang.String to the required
> type: java.lang.String[] with value [string literal 1]
>
> Any help would be appreciated.
>
>
>
> --
>
: java.lang.String[] with value [string literal 1]
Any help would be appreciated.
--
View this message in context:
http://camel.465427.n5.nabble.com/Define-an-array-in-simple-tp5770637.html
Sent from the Camel - Users mailing list archive at Nabble.com.