]
Toni Rikkola updated JBRULES-2423:
----------------------------------
Fix Version/s: 5.4.0.Final
(was: 5.4.0.CR1)
"from" does not work correctly with events in STREAM mode
---------------------------------------------------------
Key: JBRULES-2423
URL:
https://issues.jboss.org/browse/JBRULES-2423
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core (fusion)
Affects Versions: 5.0.0.M1
Environment: Drools Fusion 5.0+ with engine in STREAM mode
Reporter: Davide Sottara
Assignee: Edson Tirelli
Priority: Critical
Labels: from, fusion, stream
Fix For: 5.4.0.Final
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: