Bug 1064224 - Globals can't be used with temporal operators
Summary: Globals can't be used with temporal operators
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER2
: 6.0.1
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-12 09:13 UTC by Mario Fusco
Modified: 2014-08-06 19:57 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:57:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-426 0 Critical Resolved Globals can't be used with temporal operators 2014-03-17 14:52:24 UTC

Description Mario Fusco 2014-02-12 09:13:36 UTC
Assuming:
global Date now;

The pattern "Foo( this before now )" will generate various errors.
The reason is that the Global[X]Extractors (X =
{"","Date","Number"}

are erroneously declared as self-referential extractors.
If Foo is not an @event, a CCE will arise since the operators will use
"this" rather than the global. Otherwise, the result will be inconsistent

Comment 2 Marek Winkler 2014-03-17 14:55:32 UTC
Verified that the fix is present in BRMS 6.0.1 ER2 and relevant tests pass.


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