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

Bug 1145841

Summary: Decision table does not support formulas to set PRIORITY
Product: [Retired] JBoss BRMS Platform 6 Reporter: Alessandro Lazarotti <alazarot>
Component: BREAssignee: manstis
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: lpetrovi, manstis
Target Milestone: ER2   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:05:10 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
Decision Table none

Description Alessandro Lazarotti 2014-09-23 23:48:44 UTC
Description of problem:

Arithmetic operations or a call to "=ROW()" function does not work to set PRIORITY in Decision Tables for BRMS 6.0.x. It has worked for BRMS 5.x

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


How reproducible:


Steps to Reproduce:
1. Set a cell in PRIORITY column as =ROW()
2. Parse the spreadsheet:

~~~
SpreadsheetCompiler compiler = new SpreadsheetCompiler();
String drl = compiler.compile(ResourceFactory.newClassPathResource("DecisionTable.xls").getInputStream(), InputType.XLS);
System.out.println("**** DT rule source: \n" + drl);
~~~


Actual results:

org.drools.template.parser.DecisionTableParseException: Priority is not an integer literal, in cell

Expected results:
Decision Table parsed and working

Comment 2 Alessandro Lazarotti 2014-09-23 23:53:50 UTC
Created attachment 940630 [details]
Decision Table

Comment 3 Alessandro Lazarotti 2014-09-24 02:58:54 UTC
Pull request: https://github.com/droolsjbpm/drools/pull/384

Comment 6 Marek Winkler 2014-12-09 12:09:52 UTC
Verified in BRMS 6.1.0 ER2.