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-...
Sent from the Drools - User mailing list archive at
Nabble.com.