Migrated rules from using community based Drools libraries to enterprise BRMS version causes Predicate must be boolean expression ERROR

Solution Unverified - Updated -

Issue

  • After migrating rules from using community based Drools libraries to enterprise BRMS version causes Predicate must be boolean expression ERROR as shown below.
Predicate 'dateUtil.getYear(ruleBean.getBillDate()) >= dateUtil.getYear(ruleBean.getPayDate())' must be a Boolean expression
[Line: 30, Column: 32] : [Rule name='DefaulterPaymentRule']

How to fix these issues?

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.3.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.