Bug 1310208

Summary: When converting .xls to GDT, globals defined with short class names are converted to invalid Globals file
Product: [Retired] JBoss BRMS Platform 6 Reporter: David Murphy <dmurphy>
Component: Business CentralAssignee: manstis
Status: CLOSED EOL QA Contact: Tomas David <tdavid>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: tdavid
Target Milestone: ER1   
Target Release: 6.3.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:12:17 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:
Attachments:
Description Flags
Decision table with global variable none

Description David Murphy 2016-02-19 18:21:37 UTC
Created attachment 1128622 [details]
Decision table with global variable

Description of problem:
When converting .xls to GDT, globals defined with short class names are converted to invalid Globals file.

Using the .xls directly, the generated drl contains both the import and the global definition, and thus compiles fine. However, after conversion, the GDT contains the import, and the Globals file contains the global definition with the short class name. This fails validation.


How reproducible:
Always


Steps to Reproduce:
1. Create a .xls decision table which imports java.util.List (see attached)
2. Add a global with type List
3. Import .xls into business-central
4. Convert to Guided Decision Table
5. Open generated Globals Definition
6. Click "validate"

Actual results:
Validation Error:	
Unable to find class 'List'


Expected results:
Globals file passes validation


Additional info:
The project will build/deploy successfully, however attempting to use it will result in 
GlobalError: list : Unable to find class 'List' 
at runtime

Comment 6 Tomas David 2016-03-24 08:31:37 UTC
Verified with BRMS 6.3.0.ER1.