similar rules with >>different time periods right?
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.
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.
Regds
Chetan
2009/11/3 Mauricio Salatino <salaboy(a)gmail.com>
I don't know, we can ask Edson Terelli about that.
If you think about it, its good that the rule condition is always constant.
Because it will describe a static situation in your context.
This, will cause that when you have problems with that rule you will know
exactly what the condition is.
I think that you ask this questions because you probably have a lot of
similar rules with different time periods right?
2009/11/3 Chetan Mahadev <mahadev.chetan(a)gmail.com>
Maurico,
>
> Any plans in the future releases of Fusion??
>
> Regds
> Chetan
>
>
> On Tue, Nov 3, 2009 at 12:40 AM, Greg Barton <greg_barton(a)yahoo.com>wrote:
>
>> 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.)
>>
>> --- On Mon, 11/2/09, Mauricio Salatino <salaboy(a)gmail.com> wrote:
>>
>> > From: Mauricio Salatino <salaboy(a)gmail.com>
>> > Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a
>> parameter in Temporal operator??
>> > To: "Rules Users List" <rules-users(a)lists.jboss.org>
>> > Date: Monday, November 2, 2009, 11:45 AM
>> > no, right now that is not possible.
>> >
>> > 2009/11/2 Chetan Mahadev <mahadev.chetan(a)gmail.com>
>> >
>> >
>> > Hi,
>> >
>> > Is it possible to pass the time value as a
>> > "parameter" in temporal operator??
>> > In the below example, I would like to pass $time as a
>> > variable, any integer value/String value representing
>> > time. ( ex: $time = 10s)
>> >
>> >
>> >
>> >
>> >
>> > Ex;
>> > $eventA : EventA( this after[ $time
>> > s ] $eventB )
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> >
>> > rules-users mailing list
>> >
>> > rules-users(a)lists.jboss.org
>> >
>> >
https://lists.jboss.org/mailman/listinfo/rules-users
>> >
>> >
>> >
>> >
>> >
>> > --
>> > -
http://salaboy.wordpress.com
>> > -
http://www.jbug.com.ar
>> > - Salatino "Salaboy" Mauricio -
>> >
>> >
>> >
>> > -----Inline Attachment Follows-----
>> >
>> > _______________________________________________
>> > rules-users mailing list
>> > rules-users(a)lists.jboss.org
>> >
https://lists.jboss.org/mailman/listinfo/rules-users
>> >
>>
>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
-
http://salaboy.wordpress.com
-
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users