Bug 1001497 - Validation of guided rules fails if the project contains Globals definition
Summary: Validation of guided rules fails if the project contains Globals definition
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ER3
: 6.0.0
Assignee: manstis
QA Contact: Jiri Locker
Depends On:
TreeView+ depends on / blocked
Reported: 2013-08-27 07:31 UTC by Jiri Locker
Modified: 2014-08-06 20:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-08-06 20:20:01 UTC
Type: Bug

Attachments (Terms of Use)

Description Jiri Locker 2013-08-27 07:31:03 UTC
Description of problem:
After clicking Validate button on any type of Guided Rule (including GDT) error message pops up with message:

* [ERR 107] Line 1:0 mismatched input '<' expecting one of the following tokens: '[package, import, global, declare, function, rule, query]'.
* Parser returned a null Package

It is quite confusing because there is no '<' character in the first line of the rule source. Moreover there is nothing wrong with the rule being validated -- the error occurs only if the project contains a Globals definition file, even an empty one.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. navigate to mortgages project
2. create new Globals Definition (New Item > Global Variable(s)) and save it
3. open any guided rule, e.g. CreditApproval and click Validation

Actual results:
Validation error.

Expected results:
No validation error.

Additional info:

Comment 2 manstis 2013-08-29 13:01:27 UTC
The same problem would occur if the project contained a DSL.

Comment 3 Jiri Locker 2013-09-30 08:49:56 UTC
Fixed in ER3.

Note You need to log in before you can comment on or make changes to this bug.