[rules-users] how to write this rule in Excel? ---- $data: List ( ) from dataHelper.loadData(parameterMap)

2010-01-28 Thread Jane James
Does anyone know how to write the following rules using Excel? rule 'load Data' dialect 'mvel' salience 7000 when $data: List ( ) from dataHelper.loadData(parameterMap) then insert($data) end __

Re: [rules-users] Decision table accessing my own methods

2010-01-08 Thread Jane James
You need to import the function. for example, import YourOtherClass import function Classroom.hasStudent - Original Message From: djb To: rules-users@lists.jboss.org Sent: Fri, January 8, 2010 8:30:20 AM Subject: [rules-users] Decision table accessing my own methods Hi there, I

Re: [rules-users] import static class?

2010-01-07 Thread Jane James
classname. Jane James wrote: > > Thanks, I know I can use the static constants, but I'll have to use > ClassName.CONSTANT_NAME which is a pain, I was wondering if I can do a > static import, then just refer them as CONSTANT_NAME in my rules. > > > > - Original Messag

Re: [rules-users] import static class?

2010-01-04 Thread Jane James
: Tue, December 22, 2009 8:55:54 PM Subject: Re: [rules-users] import static class? You can definitely use your static constants in decision table or in drl files. Jane James wrote: > > Can we do a import static MyClass in drools? I have a class only contains > some constants that to be

[rules-users] import static class?

2009-12-22 Thread Jane James
Can we do a import static MyClass in drools? I have a class only contains some constants that to be referenced in my rules, but I can't import static the class. I am wondering if this is supported or not. thanks ___ rules-users mailing list

[rules-users] call a method in web guided decision table?

2009-12-10 Thread Jane James
Hi, I am trying to use the web guided decision table to create my rules, however, in the Action section, I couldn't call a static method from a utility class. The only option I see in the drop down is set field which is not what I wanted. Any ideas? Thanks _

Re: [rules-users] Guvnor 5.1.0M1 bug?

2009-11-10 Thread Jane James
To make myself clear, here is the difference I copy and paste in a picture. - Original Message From: Jane James To: Rules Users List Sent: Tue, November 10, 2009 5:30:25 PM Subject: [rules-users] Guvnor 5.1.0M1 bug? I downloaded the Guvnor 5.1.0M1 version, but then I found out I

[rules-users] Guvnor 5.1.0M1 bug?

2009-11-10 Thread Jane James
I downloaded the Guvnor 5.1.0M1 version, but then I found out I found out I can't add more than one condition to it now. there used to be a little bracket between two conditions but now it's gone. Is it a bug or it's a feature? How am I supposed to say startDate > 11/11/2009 and start date < 11/

[rules-users] import static function with varargs as one of the parameters doesn't work?

2009-11-02 Thread Jane James
Hi guys, I have a question regarding the import function feature in Drools 5.1.0M. I am reading the Drools JBoss Rules 5.0 book Developer's guide by Michal Bali and tried one of the examples but somehow I couldn't get my rules work with the method that has varargs. Here's what I have (

[rules-users] jboss 4.05GA and drools 5.1.0M1?

2009-10-19 Thread Jane James
Hi guys, Sorry for posting this problem here again, but I've been searching up and down for solutions and the only solution I found online doesn't work for me. So my problem is when I tried to integrate drools into my application which is using jboss 4.05GA, I got the following error

[rules-users] Guvnor and collections.

2009-10-06 Thread Jane James
Hi, All, I have a similar questions to Jame's question. I have a list of Strings which is wrapped in a class called Names, and what I want to get is to find all the elements that's equal to "targetStringname". How do I create a rule using guided rule editor in Guvnor to create a