[rules-users] Query query...

Esteban Aliverti esteban.aliverti at gmail.com
Tue Nov 9 14:01:00 EST 2010


Are you setting the status attribute in the RHS of a rule? Are you updating
the facts after you modify them?

Best,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2010/11/9 Dennis Duggan <dennis at esptechnologies.com>

>  I have 2 types of objects in my knowledge base that I am trying to
> equate.  Equality is based on a number of different variables contained in
> the objects.  Once I find equal objects I set a status member in each to
> “Matched”, otherwise it will be “OneKnows” or “TwoKnows”.
>
>
>
> After I fire the rules I use queries that I call from Java code to get the
> three different types of objects.
>
> *query* "OneFirmKnows"
>
>     oRecord : MyObject1( status=="OneKnows" )
>
> *end*
>
>
>
> *query* "TwoKnows"
>
>     oRecord : MyObject2( status=="TwoKnows" )
>
> *end*
>
>
>
> *query* "Matched"
>
>     oRecord : MyObject1( status=="Matched" )
>
> *end*
>
>
>
> Each query sends back all objects no matter what the status is.  The
> objects have a getStatus( ) method.  What am I doing wrong?
>
>
>
> Thanks!
>
> Dennis
>
> _______________________________________________
> 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/20101109/f7bfcd2b/attachment.html 


More information about the rules-users mailing list