Esteban wrote:
> 
> I must be missing something. If you want to check if all the three strings
> are present in each array, why are you using OR (||)?
> 
> If you don't want to model the array as a class containing the "parent"
> reference and insert them as facts, you can try this:
> 
> MyContext(classes contains "TestString1" && contains "TestString2" &&
> contains "TestString3")
> 
> 

Thanks , I'm getting up to  speed on rules construct and did not realize
contains can take an array!.
This improved both the rule compilation time as well as execution by an
order of magnitude.

Kumar
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Matching-strings-in-two-arrays-tp1602511p1603665.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to