Bug 1075039 - Validating rules that extend others is broken
Summary: Validating rules that extend others is broken
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER1
: 6.0.2
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-11 11:44 UTC by manstis
Modified: 2014-08-06 19:54 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:54:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1071205 0 medium CLOSED DRL validation returns results for all DRLs in project 2021-02-22 00:41:40 UTC

Internal Links: 1071205

Description manstis 2014-03-11 11:44:27 UTC
Description of problem:

If you create a rule that extends another and "validate" the rule; you receive an error "Unable to resolve parent rule, please check that both rules are in the
same package". Saving the rule works OK and no error messages are given.

This is caused by the validation service only loading the single rule and not the rule it extends too. Rule validation should load all rules (ideally if a rule extends another, otherwise only the single rule is OK).

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

6.0.0.GA

How reproducible:

Always

Steps to Reproduce:
1. Create "rule 1"
2. Create "rule 2" that extends "rule 1"
3. Click validate on "rule 2"

Actual results:

Validation error message is shown.

Expected results:

No validation error message is shown.

Comment 2 manstis 2014-03-11 11:54:12 UTC
The referenced BZ suffers the opposite problem! We validate all DRL files when a single DRL file is "validated" (as others could contain declared types or queries etc).


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