Unexpected rule is fired when a constraint contains a function and multiple "=="

Solution Unverified - Updated -

Issue

  • Unexpected rule is fired when a constraint contains a function and multiple "==". For example,
rule R1
    when
        $p: Person(myFunction("param == 10", age) == 1)
    then
end
rule R2
    when
        $p: Person(myFunction("param == 20", age) == 1)
    then
end

When I insert a fact which should match only R1, both rules (R1 and R2) are fired.

Environment

  • Red Hat Decision Manager (RHDM)
    • 7.2

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