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.

    []s
    Edson

2009/11/3 Chetan Mahadev <[email protected]>

> >>I think that you ask this questions because you probably have a lot of
> 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 <[email protected]>
>
> 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 <[email protected]>
>>
>> Maurico,
>>>
>>> Any plans in the future releases of Fusion??
>>>
>>> Regds
>>> Chetan
>>>
>>>
>>> On Tue, Nov 3, 2009 at 12:40 AM, Greg Barton <[email protected]>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 <[email protected]> wrote:
>>>>
>>>> > From: Mauricio Salatino <[email protected]>
>>>> > Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a
>>>> parameter in Temporal operator??
>>>> > To: "Rules Users List" <[email protected]>
>>>> > Date: Monday, November 2, 2009, 11:45 AM
>>>> > no, right now that is not possible.
>>>> >
>>>> > 2009/11/2 Chetan Mahadev <[email protected]>
>>>> >
>>>> >
>>>> > 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
>>>> >
>>>> > [email protected]
>>>> >
>>>> > 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
>>>> > [email protected]
>>>> > https://lists.jboss.org/mailman/listinfo/rules-users
>>>> >
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> rules-users mailing list
>>>> [email protected]
>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> [email protected]
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>>
>> --
>> - http://salaboy.wordpress.com
>> - http://www.jbug.com.ar
>> - Salatino "Salaboy" Mauricio -
>>
>> _______________________________________________
>> rules-users mailing list
>> [email protected]
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to