Re: [rules-users] Can we do this with drools ?

2008-03-27 Thread Steven Williams
There are some undocumented classes in drools-decisiontables that should let
you do this. Have a look at DataProviderCompilerIntegrationTest.java

cheers
Steve*
*
On Tue, Mar 25, 2008 at 12:03 PM, ferry97 <[EMAIL PROTECTED]> wrote:

>
> Thanks Mark for the info.
> Could you show me how to do it using mvel ? or refer me a link that
> explaining all this ?
>
>
>
> Mark Proctor wrote:
> >
> > ferry97 wrote:
> >> Hi,
> >> I don't know how to ask this in words.
> >> But can we do something like :
> >>
> >> rule "define trx type"
> >> when
> >>Transaction(code == ${type1.code")
> >>
> > sorry no. But it's a nice idea, maybe submit a patch? You could probably
> > do this yourself already if you use MVEL templating as a pre-parser.
> >> then
> >>doSomething 
> >>
> >> So, we define the type.code in a properties file.
> >> Thanks
> >>
> >
> > ___
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Can-we-do-this-with-drools---tp16244282p16266150.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
Steven Williams

Supervising Consultant

Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
[EMAIL PROTECTED]
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Can we do this with drools ?

2008-03-24 Thread Mark Proctor

ferry97 wrote:

Thanks Mark for the info.
Could you show me how to do it using mvel ? or refer me a link that
explaining all this ? 
  

http://docs.codehaus.org/display/MVEL/Templating+Guide



Mark Proctor wrote:
  

ferry97 wrote:


Hi,
I don't know how to ask this in words.
But can we do something like :

rule "define trx type"
when
   Transaction(code == ${type1.code")
  
  
sorry no. But it's a nice idea, maybe submit a patch? You could probably 
do this yourself already if you use MVEL templating as a pre-parser.


then
   doSomething 

So, we define the type.code in a properties file.
Thanks
  
  

___
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] Can we do this with drools ?

2008-03-24 Thread ferry97

Thanks Mark for the info.
Could you show me how to do it using mvel ? or refer me a link that
explaining all this ? 



Mark Proctor wrote:
> 
> ferry97 wrote:
>> Hi,
>> I don't know how to ask this in words.
>> But can we do something like :
>>
>> rule "define trx type"
>> when
>>Transaction(code == ${type1.code")
>>   
> sorry no. But it's a nice idea, maybe submit a patch? You could probably 
> do this yourself already if you use MVEL templating as a pre-parser.
>> then
>>doSomething 
>>
>> So, we define the type.code in a properties file.
>> Thanks
>>   
> 
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-we-do-this-with-drools---tp16244282p16266150.html
Sent from the drools - user mailing list archive at Nabble.com.

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


Re: [rules-users] Can we do this with drools ?

2008-03-24 Thread ferry97

Thanks Mark for the info.
Could you show me how to do it using mvel ? or refer me a link that
explaining all this ?

-- 
View this message in context: 
http://www.nabble.com/Can-we-do-this-with-drools---tp16244282p16266125.html
Sent from the drools - user mailing list archive at Nabble.com.

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


Re: [rules-users] Can we do this with drools ?

2008-03-23 Thread Mark Proctor

ferry97 wrote:

Hi,
I don't know how to ask this in words.
But can we do something like :

rule "define trx type"
when
   Transaction(code == ${type1.code")
  
sorry no. But it's a nice idea, maybe submit a patch? You could probably 
do this yourself already if you use MVEL templating as a pre-parser.

then
   doSomething 

So, we define the type.code in a properties file.
Thanks
  


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


[rules-users] Can we do this with drools ?

2008-03-23 Thread ferry97

Hi,
I don't know how to ask this in words.
But can we do something like :

rule "define trx type"
when
   Transaction(code == ${type1.code")
then
   doSomething 

So, we define the type.code in a properties file.
Thanks
-- 
View this message in context: 
http://www.nabble.com/Can-we-do-this-with-drools---tp16244282p16244282.html
Sent from the drools - user mailing list archive at Nabble.com.

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