Title: multiple assertions of same class type

Hi, I've just recently come aboard the drools rule engine and I'm stuck on a problem.  I would like to assert multiple instances of the same class type.  The class type is a custom class that I created but each represent a separate identity that changes state at different times.  I have a separate fact handle for each assertion and I call modifyObject on the instance that I want to, but when I call fireAllRules(), it's the wrong instance that goes through the rules that I had put down.  Is there any other way for me to take care of this besides writing specific wrapper classes for each instance of my custom class or creating a semaphore and knowing beforehand the name that needs to be used in the code and in the rules file?  Any help would be greatly appreciated.

-Philip Chan

Reply via email to