Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1218812 - Short params syntax($1, $2...) in decision tables does not work with more than 10 values ($10, $11...)
Short params syntax($1, $2...) in decision tables does not work with more tha...
Status: VERIFIED
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central (Show other bugs)
6.0.3
Unspecified Unspecified
high Severity high
: ER3
: 6.2.0
Assigned To: manstis
Tomas David
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-05 19:53 EDT by William Antônio
Modified: 2015-10-14 07:30 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description William Antônio 2015-05-05 19:53:43 EDT
Description of problem:

In decision tables we can provide parameters separated by comma and refer to it using the directives $1, $2 etc. However, when trying to get the value $10 it will never work with error or compiling to a bad DRL.

Version-Release number of selected component (if applicable):
N/A.

How reproducible:
Always.

Steps to Reproduce:
1. Create a Spreadsheet decision table
2. In the field action, use the mentioned syntax and try to access the 10th parameter:

System.out.println($10)

3. Provide 10 values:

"One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"


Actual results:

Error:

Rule Compilation error Syntax error on token "0", delete this token

Expected results:

Print to the 10th parameter.

Additional info:

if we do not use quotes on the parameter, it will not have any error, but will compile to a bad DRL.

Action:

System.out.println("$10")

Value:

One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten

It will compile to:

rule "ParamTest"
	// Test parameters more than 9
	when
	then
		System.out.println("One0");
end
Comment 4 Tomas David 2015-10-14 07:30:19 EDT
Compilation of decision tables with more more than 10 values works corretly in Business central now.

Verified on BRMS 6.2.0.ER3.

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