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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users