"Rule Compilation error xxx cannot be resolved to a variable" in JBoss BRMS 6

Solution Verified - Updated -


We are following the guide for the creation of the rule "Hello World" in jboss BRMS according to the indications of the quick started as follows:

    Person(name : firstName, surname : lastName)

However when trying to clean and create we see these error messages:

Field Reader does not exist for declaration 'surname' in 'surname : lastName' in the rule 'MyRule'
Rule Compilation error surname cannot be resolved to a variable


  • Red Hat JBoss BRMS (BRMS) 6

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