List Info

Thread: Can we do this with drools ?




Can we do this with drools ?
country flaguser name
United States
2008-03-23 20:56:09
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-userslists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users

Re: Can we do this with drools ?
user name
2008-03-27 18:32:02
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 < vri_97yahoo.com" target="_blank">vri_97yahoo.com> 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:
&gt;
> ferry97 wrote:
&gt;> Hi,
>> I don't know how to ask this in words.
&gt;> But can we do something like :
>&gt;
>&gt; 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.
&gt;> Thanks
&gt;>
&gt;
> _______________________________________________
> rules-users mailing list
>; rules-userslists.jboss.org" target="_blank">rules-userslists.jboss.org
&gt; https://lists.jboss.org/mailman/listinfo/rules-users
>
&gt;

--
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-userslists.jboss.org" target="_blank">rules-userslists.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
steven.williamsobjectconsulting.com.au" target="_blank">steven.williamsobjectconsulting.com.au
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )