Details
-
Bug
-
Resolution: Done
-
Critical
-
5.0.0.M1
Description
In the simple test case below, Message is an instantaneous event (i.e. duration = 0) with a list of destinations.
--------------------------------------------------------------------------------------------------------------------------------------
declare Message
@role( event )
@timestamp(start)
@duration(duration)
end
rule "Hello World"
when
m : Message( status == Message.HELLO, $myMessage : message, $destinations : dest)
$s : String() from $destinations
then
System.out.println( "Dear " + $s + " : >>> " + $myMessage );
end
--------------------------------------------------------------------------------------------------------------------------------------
if the engine is configured to work in STREAM mode, the output is
Dear NULL :>>> Hello World
...
since the Strings extracted from the Collection "dest" have already been retracted by
the time the rule is fired, following the retraction of the Message event.
The problem does not show in CLOUD mode.
Attachments
Issue Links
- relates to
-
JBRULES-2735 ClassCastException for casting DefaultFactHandle to EventFactHandle when using Sliding Windows
- Open