DSL Validation fails with mismatched input '-' expecting 'then' in BRMS on Windows

Solution Unverified - Updated -

Issue

  • I am trying to use a variable in my DSL :
[condition] [$testObject]There is a TestObject=$testObject : TestObject()  
[condition] [$testObject]- var less than {var} some criteria=var < {var}
  • The result is a validation exception:
[SampleTest] [ERR 102] Line 5:2 mismatched input '-' expecting 'then' in rule "SampleTest"

Environment

  • JBoss Enterprise Business Rules Management System Platform (BRMS)
    • 5.x
  • Windows

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