Hi I think there is an IN function in simple also that ought to support this check too
Den torsdag den 13. august 2015 skrev ablevine1 <ablevi...@gmail.com>: > Thanks for getting back to me about this. Too bad that array creation is > not > supported. What I was trying to do with my bean method was to provide > validation to check whether or not one of the properties of my object was > equal to one of the values in the array. I just found an alternate > solution > by using the validate dsl instead. I'm not sure how I managed not to find > the validate DSL first before rolling my own solution. With the validate > DSL I was able to do the following instead: > > <validate><simple>${body.mypropertytovalidate} regex > '\b(STRING1|STRING2|STRING3)\b'</simple></validate> > > > > > -- > View 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. > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2nd edition: http://www.manning.com/ibsen2