[rules-users] @role( event ) in guvnor
Pankaj Khattar
pankaj.khattar1 at alcatel-lucent.com
Thu Dec 2 01:24:15 EST 2010
Thanks for the info.
The approach works good except when i try to use sliding window on the fact
name in the rule.
for example:
import com.drools.service.AlertReceivedEvent;
declare AlertReceivedEvent
@role(event)
end
rule "Delay Alert"
no-loop true
dialect "mvel"
lock-on-active
when
AlertReceivedEvent( //condition) over window:time(90s) from entry-point
NotificationStream
then
// code to be executed
end
when i try to validate this rule in guvnor then it gives me error as
[Delay Alert] A Sliding Window behavior can only be assigned to patterns
declared with @role( event ). The pattern '[ClassObjectType
class=com.alu.ae.ais.smp.fm.drools.service.AlertReceivedEvent]' in the rule
'Delay Alert' is not declared as an Event.
please suggest.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/role-event-in-guvnor-tp1991538p2004356.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list