[rules-users] How to periodically iterate over all facts in a stream

isakdim isakdim at gmail.com
Thu Jul 7 12:26:49 EDT 2011


My initial attempt is for the application to periodically set focus to the
"SomeAgendaGroup" and then wait for rule(s) to call
GlobalServiceProvider.someService.  On the first agenda activation, the rule
iterates through all events.  On the following agenda activations, the rule
iterates only through the events that have been inserted since the last
activation.

rule "Iterate over all events in the SomeStream"
	agenda-group "SomeAgendaGroup"
when
	$someEvent : SomeEvent() from entry-point "SomeStream"
then
	GlobalServiceProvider.someService($someEvent);
end

Is there a way to implement a rule so that it iterates through all events
each time its agenda-group is activated or a different way to implement this
task?

 Thank You!

--
View this message in context: http://drools.46999.n3.nabble.com/How-to-periodically-iterate-over-all-facts-in-a-stream-tp3148733p3148733.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list