How to write a rule which constrains Collection property size in BRMS Guided Rule Editor

Solution Unverified - Updated -

Issue

  • When a fact has a Collection property, Guided Rule Editor offers "contains/excludes/equal to/not equal to/is null/is not null" but not size related operators.
    undefined
    so I cannot construct DRL like
Company(empList.size() > 5)

Environment

  • Red Hat JBoss BRMS
    • 5.3.1

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.