I'm working with Esper + Mule and I am trying to define a POJO and an Event, but after reading the documentation of Espero I haven't found what I really need.
My event, represented by a POJO, has a property like this:
List<String> Words;
What I would like to do is use the keyword IN to compare it with another list of words, so the pattern would look like this:
... Words in ('word1', 'word2', 'word3) ...
But I get this error:
Collection or array comparison is not allowed for the IN, ANY, SOME or ALL keywords
Is there any way to achieve this?
Thank you very much
One way is to create a method to do what you want, register that method with esper, and reference that method from your EPL statement:
Create helper class (for this example, I use EsperUtils.java):
Register method with esper in aem.esper.config.xml:
Use the helper method in your EPL:
You could also add the helper method to your event POJO instead of a helper class.