Bug 724313 (BRMS-258) - [JBRULES-2438] loading multiple sheets of single Excel book by one change-set xml
Summary: [JBRULES-2438] loading multiple sheets of single Excel book by one change-set...
Keywords:
Status: VERIFIED
Alias: BRMS-258
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRE (Expert, Fusion)
Version: 5.0.0 GA
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: future
Assignee: Nobody
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-01 16:29 UTC by Toshiya Kobayashi
Modified: 2023-05-15 19:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A changeset that imported multiple sheets from the same Excel file decision table, only included the rules from one sheet and silently ignored the rules in the other sheets. This has been resolved and the rules from all sheets are now correctly imported.
Clone Of:
Environment:
Last Closed:
Type: Feature Request
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-258 0 Major Closed [JBRULES-2438] loading multiple sheets of single Excel book by one change-set xml 2020-09-15 00:59:29 UTC
Red Hat Issue Tracker JBRULES-2438 0 Major Resolved Loading multiple sheets of single Excel book by one change-set xml should fail gracefully if multiple sheets use the sam... 2020-09-15 00:59:28 UTC

Description Toshiya Kobayashi 2010-03-01 16:29:15 UTC
Affects: Release Notes
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/480553
securitylevel_name: Public

Platform JIRA for [JBRULES-2438] loading multiple sheets of single Excel book by one change-set xml

Comment 1 Toshiya Kobayashi 2010-03-01 16:33:41 UTC
Link: Added: This issue incorporates JBRULES-2438


Comment 2 Toshiya Kobayashi 2010-03-01 16:34:10 UTC
Link: Added: This issue is incorporated by SOA-1965


Comment 4 Geoffrey De Smet 2012-08-30 09:43:32 UTC
Reproduced with a unit test on master too.

Comment 5 JBoss JIRA Server 2012-08-30 12:06:06 UTC
Geoffrey De Smet <ge0ffrey.spam> made a comment on jira JBRULES-2438

Actually, it works, as shown here:
https://github.com/droolsjbpm/drools/commit/643fba49913b8e01449981f7298ae1c58092b1e0

Comment 6 JBoss JIRA Server 2012-08-30 12:06:43 UTC
Geoffrey De Smet <ge0ffrey.spam> made a comment on jira JBRULES-2438

Actually, it works, as shown here:
https://github.com/droolsjbpm/drools/commit/643fba49913b8e01449981f7298ae1c58092b1e0

But if multiple sheets use the same RuleTable name it should fail gracefully indeed (changed the issue to this).

Comment 7 Geoffrey De Smet 2012-08-30 12:22:17 UTC
It's possible to do it, here's a unit test on 5.3.x (also on 5.4.x and master):
  https://github.com/droolsjbpm/drools/commit/57df74328e2d7e4b41e80bc43beb6d3264f1374e

But if multiple sheets use the same RuleTable name it should fail gracefully.
I 'll take a look at that failing gracefully to fix this issue.

Comment 8 Geoffrey De Smet 2012-08-30 15:46:06 UTC
Failing gracefully is not possible, because it's specified behavior that newer rules with the same name overwrite older rules with the same name.

So, I did the next best thing, document the pitfall in the manual (5.3, 5.4 and master):
  https://github.com/droolsjbpm/drools/commit/e1165dc908446198c45710ab04c015a6573b3f76

Comment 9 JBoss JIRA Server 2012-08-30 15:47:05 UTC
Geoffrey De Smet <ge0ffrey.spam> updated the status of jira JBRULES-2438 to Resolved

Comment 10 Geoffrey De Smet 2012-08-31 06:48:39 UTC
Re-opening, after talking with Edson, we need to go for a better solution:

<ge0ffrey> Another idea, what if I suffix the sheet name + the row number (instead of just the row number) to TableName?
<Edson>   Geoffrey, I think that prefixing the rule name with the sheet name as you suggest would be the best solution for this problem.

Comment 11 JBoss JIRA Server 2012-08-31 12:31:14 UTC
Geoffrey De Smet <ge0ffrey.spam> updated the status of jira JBRULES-2438 to Reopened

Comment 12 JBoss JIRA Server 2012-08-31 12:31:44 UTC
Geoffrey De Smet <ge0ffrey.spam> updated the status of jira JBRULES-2438 to Resolved

Comment 13 JBoss JIRA Server 2012-08-31 12:31:44 UTC
Geoffrey De Smet <ge0ffrey.spam> made a comment on jira JBRULES-2438

Fixed decently on master by adding the sheet name to the rule name generation

Comment 14 Geoffrey De Smet 2012-08-31 12:35:04 UTC
Fixed by adding the sheet name into the rule name too.

Comment 15 Geoffrey De Smet 2012-08-31 12:35:55 UTC
on 5.3.x (and 5.4 and master): https://github.com/droolsjbpm/drools/commit/ed6b8c549965a86e81727aba35ec680ca89c0143

Comment 16 Tomas Schlosser 2012-09-25 13:25:52 UTC
Verified in BRMS-5.3.1-ER1.

Comment 17 lcarlon 2012-10-18 01:19:28 UTC
Thanks for providing the release notes text, Geoffrey.


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