[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2423) "from" does not work correctly with events in STREAM mode
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Sun Sep 25 04:04:39 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet updated JBRULES-2423:
--------------------------------------
Fix Version/s: 5.3.0.Final
(was: 5.3.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.3.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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list