Greetings.

Maybe I have misunderstood things, but I think this is a bit odd.

If I have a method getName() in a java object and use that as a
condition, like this:
        <cond>
                someObject.getName().equals("");
        </cond>

and then modify that object in the actions of another rule, like this:

        <then>
                someObject.setName("foo");
                modifyObject(someObject);
        </then> 

then the truth of the empty string condition can be modified by
inserting and removing System.out.println()'s in the getName()/setName()
methods.
Perhaps I'm going at this the wrong way, but this behaviour feels odd to
me.

Should I do things some other way or is this some kind of bug?

Regards,
        Ove Lindblom
        


_______________________________________________
drools-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/drools-interest

Reply via email to