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

Mauricio Salatino salaboy at gmail.com
Tue Sep 3 06:56:28 EDT 2013


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 at 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-question-tp4025760.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at 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 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130903/cf338ad8/attachment-0001.html 


More information about the rules-users mailing list