I think that OP is looking for a "higher order function operator",
i.e., applying pattern matching to all elements of a list returning
true if there is a match. Cf. Perl's
grep( /Action/, @likes )
It's not too difficult to implement such an operator.
Also, a simple DRL function would do the tr
yeah you can use the matches operator and write your own regular expression
there.
Cheers
On Wed, Jul 24, 2013 at 10:47 AM, rganesh84 wrote:
> I was just wondering if there is a pattern matcher available in drools.
> Below is a sample
>
> rule "Action Movies"
> dialect "java"
> whe
I was just wondering if there is a pattern matcher available in drools.
Below is a sample
rule "Action Movies"
dialect "java"
when
ui : UserInfo(likes contains "Action")
then
List sw = new ArrayList();
sw.add("Die Hard");
sw.a