Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-03 Thread Edson Tirelli
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 

> >>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 
>
> 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 
>>
>> Maurico,
>>>
>>> Any plans in the future releases of Fusion??
>>>
>>> Regds
>>> Chetan
>>>
>>>
>>> On Tue, Nov 3, 2009 at 12:40 AM, Greg Barton 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  wrote:
>>>>
>>>> > From: Mauricio Salatino 
>>>> > Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a
>>>> parameter in Temporal operator??
>>>> > To: "Rules Users List" 
>>>> > Date: Monday, November 2, 2009, 11:45 AM
>>>> > no, right now that is not possible.
>>>> >
>>>> > 2009/11/2 Chetan Mahadev 
>>>> >
>>>> >
>>>> > 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@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@lists.jboss.org
>>>> > https://lists.jboss.org/mailman/listinfo/rules-users
>>>> >
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> rules-users mailing list
>>>> rules-users@lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>>
>>>
>>> ___
>>> rules-users mailing list
>>> rules-users@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@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> 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
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-03 Thread Chetan Mahadev
>>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 

> 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 
>
> Maurico,
>>
>> Any plans in the future releases of Fusion??
>>
>> Regds
>> Chetan
>>
>>
>> On Tue, Nov 3, 2009 at 12:40 AM, Greg Barton 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  wrote:
>>>
>>> > From: Mauricio Salatino 
>>> > Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a
>>> parameter in Temporal operator??
>>> > To: "Rules Users List" 
>>> > Date: Monday, November 2, 2009, 11:45 AM
>>> > no, right now that is not possible.
>>> >
>>> > 2009/11/2 Chetan Mahadev 
>>> >
>>> >
>>> > 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@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@lists.jboss.org
>>> > https://lists.jboss.org/mailman/listinfo/rules-users
>>> >
>>>
>>>
>>>
>>>
>>> ___
>>> rules-users mailing list
>>> rules-users@lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>>
>> ___
>> rules-users mailing list
>> rules-users@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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-03 Thread Mauricio Salatino
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 

> Maurico,
>
> Any plans in the future releases of Fusion??
>
> Regds
> Chetan
>
>
> On Tue, Nov 3, 2009 at 12:40 AM, Greg Barton 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  wrote:
>>
>> > From: Mauricio Salatino 
>> > Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a
>> parameter in Temporal operator??
>> > To: "Rules Users List" 
>> > Date: Monday, November 2, 2009, 11:45 AM
>> > no, right now that is not possible.
>> >
>> > 2009/11/2 Chetan Mahadev 
>> >
>> >
>> > 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@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@lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/rules-users
>> >
>>
>>
>>
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
> ___
> rules-users mailing list
> rules-users@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-02 Thread Chetan Mahadev
Maurico,

Any plans in the future releases of Fusion??

Regds
Chetan

On Tue, Nov 3, 2009 at 12:40 AM, Greg Barton  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  wrote:
>
> > From: Mauricio Salatino 
> > Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a
> parameter in Temporal operator??
> > To: "Rules Users List" 
> > Date: Monday, November 2, 2009, 11:45 AM
> > no, right now that is not possible.
> >
> > 2009/11/2 Chetan Mahadev 
> >
> >
> > 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@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@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-02 Thread Greg Barton
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  wrote:

> From: Mauricio Salatino 
> Subject: Re: [rules-users] [Fusion ] - Can we pass time value as a parameter 
> in Temporal operator??
> To: "Rules Users List" 
> Date: Monday, November 2, 2009, 11:45 AM
> no, right now that is not possible.
> 
> 2009/11/2 Chetan Mahadev 
> 
> 
> 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@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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 


  

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-02 Thread Mauricio Salatino
no, right now that is not possible.

2009/11/2 Chetan Mahadev 

>
> 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@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] [Fusion ] - Can we pass time value as a parameter in Temporal operator??

2009-11-02 Thread Chetan Mahadev
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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users