temporal reasoning/drools fusion: basic question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

temporal reasoning/drools fusion: basic question

amarok
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?
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] temporal reasoning/drools fusion: basic question

salaboy
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 <[hidden email]> 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-question-tp4025760.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users



--
 - MyJourney @ http://salaboy.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar
 
 - Salatino "Salaboy" Mauricio -

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users