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, 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