Rules validation / compilation fails with "no viable alternative at input XXX in rule YYY" error

Solution In Progress - Updated -

Issue

We are using guided editor to create rules. After we have added an additional condition, the rules validation fails with a no viable alternative at input XXX in rule YYY error. The failing rule looks similar to this one:


-------------------SAMPLE RULE--------------- 1. | import java.lang.Number; 2. | import java.lang.String; 3. | 4. | 5. | rule "Test" 6. | dialect "mvel" 7. | when 8. | ValueList( listName == "XYZ" , $ListX : listOfValues != null ) 9. | $AUname : String( ) 10. | String( this == ( $AUname ) ) from $ListX 11. | ( Number( ) or String( ) ) 12. | then 13. | end -------------------SAMPLE RULE---------------

We found out that flipping lines 10 & 11 helps to make validation pass again.

Environment

  • Red Hat JBoss BRMS
    • 6.1
    • 6.2
    • 6.3

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.