Formulas are not evaluated mathematically correct in Drools using MVEL

Solution Verified - Updated -

Issue

  • Sometimes complex formulas in the RHS of a rule in Drools don't get the correct result so it is necessary enforce the operator precedence by adding parentheses.

Environment

  • Red Hat JBoss BPM Suite
    • 6.x.xx
  • Red Hat JBoss BRM Suite
    • 6.x.xx

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.