Wolfgang gave a great solution.<br><br><div class="gmail_quote">On 12 October 2010 02:23, kpandey <span dir="ltr"><<a href="mailto:kumar.pandey@gmail.com">kumar.pandey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I got it to work using eval like so<br>
<br>
when<br>
...<br>
eval($mycontext.isNotSubset("STRING1", "STRING2","STRING3", "STRING4"))<br>
<br>
I have the logic in isNotSubset method in context class to check if the set<br>
the context is subset of array passed in the call to the method.<br>
<br>
This works but I believe this can't make use of the rete optimization ?<br>
<br>
<br>
Thanks<br>
Kumar<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Check-if-fact-is-subset-of-items-in-the-rule-tp1680013p1684551.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Check-if-fact-is-subset-of-items-in-the-rule-tp1680013p1684551.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>