Rule condition is evaluated even if its Ruleflow Group is not active

Solution Verified - Updated -

Issue

Given the rule below:

rule "Some rule"
ruleflow-group "group2"

    when
       p: Person( name.charAt(0) matches "A" )
(...)

It throws an NullPointerException even if its ruleflow-group is not active:

Caused by: java.lang.RuntimeException: Error evaluating constraint 'name.charAt(0) ~= "A"' in [Rule "Second Rule" in rule.drl]
(...)
Caused by: [Error: null pointer: name.charAt(0)]
[Near : {... name.charAt(0) ~= "A" ....}]

Is not the condition side of a rule supposed to be evaluated only when its ruleflow-group is active ?

Environment

  • Red Hat JBoss BRMS 6.x
  • Red Hat JBoss BPM Suite 6.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