Sure
rule "not Y after X - 5 mins"
when
$x: X()
not ( Y( this after[ 5m ] $x) )
then
// do something
end
Check the Drools fusion docs.. there are examples there..
Cheers
On Mon, Sep 2, 2013 at 5:32 PM, amarok <mail(a)alexander-wolf.net> wrote:
Does fusion support temporal reasoning on futur events?
E.g. I want to define rules like the following:
If within 5 minutes after Event X there is NOT an Event Y
Then do [...]
This rule would then be "initiated" when an Event X occurs, and would be
"fired" when within the next 5 minutes no Event Y follows.
If this does not work with fusion, what would you recommend?
If it does, could someone post a very simple .drl example for such a rule?
--
View this message in context:
http://drools.46999.n3.nabble.com/temporal-reasoning-drools-fusion-basic-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- MyJourney @
http://salaboy.com <
http://salaboy.wordpress.com>
- Co-Founder @
http://www.jugargentina.org
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -