[rules-users] Check if fact is subset of items in the rule

Michael Anstis michael.anstis at gmail.com
Tue Oct 12 04:21:23 EDT 2010


Wolfgang gave a great solution.

On 12 October 2010 02:23, kpandey <kumar.pandey at gmail.com> wrote:

>
> I got it to work using eval like so
>
> when
>   ...
>   eval($mycontext.isNotSubset("STRING1", "STRING2","STRING3", "STRING4"))
>
> I have the logic in isNotSubset method in context class to check if the set
> the context is subset of array passed in the call to the method.
>
> This works but I believe this can't make use of the rete optimization ?
>
>
> Thanks
> Kumar
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Check-if-fact-is-subset-of-items-in-the-rule-tp1680013p1684551.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101012/bc1ba7e9/attachment.html 


More information about the rules-users mailing list