'update' does not work as expected when using dialect "mvel" with property reactive

Solution In Progress - Updated -

Issue

'update' does not work as expected when using dialect "mvel" with property reactive(this is enabled in RHDM7 by default[1]).
For instance, when using update() after fact modification like the following rules,

rule fact_update
        when
                $fact: Fact(
                        name == "TEST_UPDATE"
                )
        then
                $fact.value = "1";
                update($fact);
                logger.debug("executed fact_update: " + $fact);
end

rule fact_value_updated
        when
                $fact: Fact(value == "1")
        then
                logger.debug("value updated.");
end

the rule 'fact_update' is continuously executed even though property reactivity is enabled.

[1]
Property reactivity enabled by default since RHDM 7.0.0

Environment

  • Red Hat Decision Manager
    • 7.1.1
  • dialect mvel

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content