<br> We might eventually support this in the future, but no plans yet. Reason is that the static parameters are used for compile time analysis to support automatic event lifecycle management. Variables would prevent that.<br>
<br> []s<br> Edson<br><br><div class="gmail_quote">2009/11/3 Chetan Mahadev <span dir="ltr"><<a href="mailto:mahadev.chetan@gmail.com">mahadev.chetan@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">>>I think that you ask this questions because you probably have a lot of similar rules with >>different time periods right?<br><br></div>Yes , I have some cases where only the time periods applied for temporal reasoning change. I was thinking of generalizing with a single rule instead of writing rules for each of the cases, and passing time as a parameter in the rule.<br>
<br>Am not sure if its a good idea to pass time as a variable or not, but i thought it is a cool feature to have that kinda flexiblity.<br><br>Regds<br>Chetan<br><br><br> <br><div class="gmail_quote">2009/11/3 Mauricio Salatino <span dir="ltr"><<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I don't know, we can ask Edson Terelli about that.<br>If you think about it, its good that the rule condition is always constant. Because it will describe a static situation in your context.<br>
This, will cause that when you have problems with that rule you will know exactly what the condition is.<br>
I think that you ask this questions because you probably have a lot of similar rules with different time periods right?<br> <br><br><div class="gmail_quote">2009/11/3 Chetan Mahadev <span dir="ltr"><<a href="mailto:mahadev.chetan@gmail.com" target="_blank">mahadev.chetan@gmail.com</a>></span><div>
<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Maurico,<br><br>Any plans in the future releases of Fusion??<br><br>Regds<br><font color="#888888">Chetan</font><div>
<div></div><div><br><br><div class="gmail_quote">On Tue, Nov 3, 2009 at 12:40 AM, Greg Barton <span dir="ltr"><<a href="mailto:greg_barton@yahoo.com" target="_blank">greg_barton@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You could do this by generating the rule text, but it would no be dynamic. (i.e. you'd have to regenerate the rule and reload it into the ruleset.)<br>
<br>
--- On Mon, 11/2/09, Mauricio Salatino <<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>> wrote:<br>
<br>
> From: Mauricio Salatino <<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>><br>
> Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??<br>
> To: "Rules Users List" <<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>><br>
> Date: Monday, November 2, 2009, 11:45 AM<br>
<div><div></div><div>> no, right now that is not possible.<br>
><br>
> 2009/11/2 Chetan Mahadev <<a href="mailto:mahadev.chetan@gmail.com" target="_blank">mahadev.chetan@gmail.com</a>><br>
><br>
><br>
> Hi,<br>
><br>
> Is it possible to pass the time value as a<br>
> "parameter" in temporal operator??<br>
> In the below example, I would like to pass $time as a<br>
> variable, any integer value/String value representing<br>
> time. ( ex: $time = 10s)<br>
><br>
><br>
><br>
><br>
><br>
> Ex;<br>
> $eventA : EventA( this after[ $time<br>
> s ] $eventB )<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> <br>
><br>
> _______________________________________________<br>
><br>
> rules-users mailing list<br>
><br>
> <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
> - Salatino "Salaboy" Mauricio -<br>
><br>
><br>
><br>
</div></div>> -----Inline Attachment Follows-----<br>
<div><div></div><div>><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div></div></div><div><div></div><div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
- Salatino "Salaboy" Mauricio -<br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div></div></div><br>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>