Bug 1218812
| Summary: | Short params syntax($1, $2...) in decision tables does not work with more than 10 values ($10, $11...) | ||
|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | William Antônio <wsiqueir> |
| Component: | Business Central | Assignee: | manstis |
| Status: | CLOSED EOL | QA Contact: | Tomas David <tdavid> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.0.3 | CC: | alazarot, ravindra.tubati, tdavid |
| Target Milestone: | ER3 | ||
| Target Release: | 6.2.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:08:50 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: | |||
Compilation of decision tables with more more than 10 values works corretly in Business central now. Verified on BRMS 6.2.0.ER3. |
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