Wrong behavior of @watch() annotation in property reactivity when excluding all but one property

Solution Unverified - Updated -

Issue

I added @watch(!*, a) like below so as to watch only property a, but property reactivity worked for all the properties of the fact object unexpectedly.

rule "rule-1"
    when
        $fact: FactX(convertToClassifiedString(a) == "LARGE") @watch(!*, a)
    then
        System.out.println("***** Action of rule-1");
        modify($fact) { setD("OK") };
end

Environment

  • Red Hat Decision Manager (RHDM)
    • 7.4.0 - 7.8.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In