Bug 1098081
| Summary: | Validation for spreadsheet fails because it cannot find functions in the same package | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Toshiya Kobayashi <tkobayas> | ||||||
| Component: | Business Central | Assignee: | manstis | ||||||
| Status: | CLOSED EOL | QA Contact: | Jiri Locker <jlocker> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 6.0.1 | CC: | kverlaen | ||||||
| Target Milestone: | DR4 | ||||||||
| 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:00:40 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: |
|
||||||||
Created attachment 895815 [details]
my.drl
Created attachment 895816 [details]
Sample.xls
|
Description of problem: You have: - DRL file which contains function - Spreadsheet which refers to the function You can successfully "Build & Deploy" in business-central. But when you press "Validate" button for the spreadsheet, it fails because it cannot find functions. Steps to Reproduce: In business-central, 1. Create a DRL with the content of my.drl attached to this BZ 2. Upload Sample.xls attached to this BZ 3. Press "Validate" in XLS Decision Table Editor Actual results: Validation fails with error messages 16:10:14,490 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (http-/127.0.0.1:8080-3) Unable to build KieBaseModel:defaultKieBase Unable to Analyse Expression myfunc() == 0: [Error: unable to resolve method using strict-mode: java.lang.String.myfunc()] [Near : {... myfunc() == 0 ....}] ^ [Line: 6, Column: 2] : [Rule name='HelloWorld_11'] Unable to Analyse Expression myfunc() == 1: [Error: unable to resolve method using strict-mode: java.lang.String.myfunc()] [Near : {... myfunc() == 1 ....}] ^ [Line: 14, Column: 2] : [Rule name='HelloWorld_12'] Expected results: Successfully validated