[jboss-jira] [JBoss JIRA] Assigned: (JBRULES-2423) "from" does not work correctly with events in STREAM mode
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Tue Feb 2 17:04:19 EST 2010
[ https://jira.jboss.org/jira/browse/JBRULES-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edson Tirelli reassigned JBRULES-2423:
--------------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
> "from" does not work correctly with events in STREAM mode
> ---------------------------------------------------------
>
> Key: JBRULES-2423
> URL: https://jira.jboss.org/jira/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
>
> 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 contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list