"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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.