Bug 1253575
| Summary: | Drools nested date comparison expressions with OR condition | |||
|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Hisao Furuichi <hfuruich> | |
| Component: | BRE | Assignee: | Mario Fusco <mfusco> | |
| Status: | CLOSED EOL | QA Contact: | Marek Winkler <mwinkler> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.1.0 | |||
| 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: | ||||
| : | 1253576 (view as bug list) | Environment: | ||
| Last Closed: | 2020-03-27 20:12:00 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1253576 | |||
I tested with BRMS 6.1.2, and the issue still occurs. Verified in BRMS 6.2.0 ER3. |
Description of problem: Following RHS which uses Date object comparison works fine: DateContainer( date >= "15-Oct-2013" || date <= "01-Oct-2013" ) If there are multiple conditions connecting with "||" or "&&" as follows, syntax error occurs: DateContainer ( (date >= "19-Dec-2015" && date <= "03-Jan-2016" ) || (date >= "17-Dec-2016" && date <= "02-Jan-2017" )) Exception is === Unable to Analyse Expression date >= "19-Dec-2015" && date <= "03-Jan-2016" || date >= "17-Dec-2016" && date <= "02-Jan-2017": [Error: Comparison operation requires compatible types. Found class java.util.Date and class java.lang.String] [Near : {... "03-Jan-2016" || date >= "17-Dec-2016" && date <= "02-Jan-2017" ....}] ^ [Line: 25, Column: 2] === Additional info: BZ-1072217 covers non-nested comparison like this: DateContainer( date >= "15-Oct-2013" || date <= "01-Oct-2013" )