"unable to resolve method using strict-mode" error during rule compilation when using Boolean attribute in Fact model

Solution Verified - Updated -

Issue

When Fact model includes boolean attribute defined like this:

 private Boolean gpa;

        public Boolean isGpa() {
                         return gpa;
        }

the compilation of a rule, which uses this attribute in LHS, like this:

when
Fact(gpa == true)

will fail with following error:

[Error: unable to resolve method using strict-mode: Fact.gpa()]
[Near : {... gpa == true ....}]

Environment

  • Red Hat JBoss BRMS
    • 5.x
    • 6.x

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