How to write coalesce function in JBoss BRMS 6 DRL files?

Solution Verified - Updated -

Issue

  • How to write COALESCE function in drools drl file?
  • We have a scenario where we might send two or more number of attributes to a function in a drools DRL file and it should return first non-null value back;

Environment

  • Red Hat JBoss BRMS (BRMS) 6

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.