<div dir="ltr">Sure<div><br></div><div style>rule "not Y after X - 5 mins"</div><div style> when</div><div style> $x: X()</div><div style> not ( Y( this <a id="d0e626" style="font-family:courrier,monospace;font-size:0.9em;line-height:18px;text-align:justify">after[ 5m ]</a> $x) ) <br>
</div><div style> then</div><div style> // do something</div><div style>end</div><div style><br></div><div style>Check the Drools fusion docs.. there are examples there..</div><div style>Cheers</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Sep 2, 2013 at 5:32 PM, amarok <span dir="ltr"><<a href="mailto:mail@alexander-wolf.net" target="_blank">mail@alexander-wolf.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does fusion support temporal reasoning on futur events?<br>
<br>
E.g. I want to define rules like the following:<br>
<br>
If within 5 minutes after Event X there is NOT an Event Y<br>
Then do [...]<br>
<br>
This rule would then be "initiated" when an Event X occurs, and would be<br>
"fired" when within the next 5 minutes no Event Y follows.<br>
<br>
If this does not work with fusion, what would you recommend?<br>
If it does, could someone post a very simple .drl example for such a rule?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/temporal-reasoning-drools-fusion-basic-question-tp4025760.html" target="_blank">http://drools.46999.n3.nabble.com/temporal-reasoning-drools-fusion-basic-question-tp4025760.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.com</a><div> - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino "Salaboy" Mauricio -</div></div>
</div>