Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 910752

Summary: Rule template generates invalid rules
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jan Hrcek <jhrcek>
Component: BRM (Guvnor)Assignee: manstis
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.1   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:27:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Sample Rule template
none
Sample template data - 3 of the 4 rows are intentionaly left with blank fiels
none
4 rules are generated, although by documentation only 1 was expected to be generated none

Description Jan Hrcek 2013-02-13 13:37:48 UTC
Created attachment 696803 [details]
Sample Rule template

Description of problem:

When creating rules using "New Rule Template" feature and filling in values of template keys, the rules are generated, even for template data rows, that contain blank cells.

However the official documentation (BRMS User Guide: https://access.redhat.com/knowledge/docs/en-US/JBoss_Enterprise_BRMS_Platform/5/html-single/5.3.1_Release_Notes/index.html) states:

"..One row of data is used for the template keys for a single rule. Each row of data becomes an instance of the rule. If any cells for a row are left blank, a rule for the applicable row is not generated."



Version-Release number of selected component (if applicable):
Version 5.3.1.BRMS-ER4


How reproducible:


Steps to Reproduce:
1. Using the sample repository provided with BRMS platform (mortgages) I created new Rule Template as shown in the attached screenshot (1)
2. The Template data table is filled as in screenshot 2 (notice the 3 incomplete lines)
3. You click on "Source" > "View source" to se what rules got generated


Actual results:
There are 4 rules generated (1 per each line of template data). See screenshot 3. The rules are both validated and verified successfully (Source > Validate / Verify), but 3 of the 4 rules should not have been generated in the first place.

Expected results:
Only 1 rule should be generated, because 3 of the 4 lines in templated data are not complete. (as per documentation: If any cells for a row are left blank, a rule for the applicable row is not generated.)

Additional info:

Comment 1 Jan Hrcek 2013-02-13 13:39:04 UTC
Created attachment 696804 [details]
Sample template data - 3 of the 4 rows are intentionaly left with blank fiels

Comment 2 Jan Hrcek 2013-02-13 13:40:17 UTC
Created attachment 696805 [details]
4 rules are generated, although by documentation only 1 was expected to be generated

Comment 3 Geoffrey De Smet 2013-03-05 13:40:08 UTC
Reassign to the guvnor team, now that I am working full time on planner. So these issues aren't forgotten.

Comment 6 Red Hat Bugzilla 2025-02-10 03:27:26 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.