Re: [rules-users] Usage of Drools in a RCP project

2007-09-05 Thread r . bach
Thank you very Much Jean-Pierre. You're hint was very helpful. I forgot the possibility of RCP to register some plugin as buddy of the drools plugin. When I register the plugin using the drools plugin as buddy everything works fine. Even without setting a classloader. So once again, thank you

Re: [rules-users] storing array in variable!

2007-09-05 Thread vamshidhar reddy chitti
Hello Mr Edson, I tried using memberOf , but i get java.lang.ClassCastException: Can't check if an attribute is member of an object of class class [Ljava.lang.String; here is my code MyFact($arraystore : x.y.z) MyAnotherFact(a memberOf $arraystore) where z is an string of array and MyAnother

Re: [rules-users] Still can't create a standalone application

2007-09-05 Thread Mark Proctor
drools-4.0.1-bin.zip contains all the deps you could need - to run this example all I did was dump them all in the lib dir, and remove some just so the zip wasn't too big. We fully document all dependencies here: http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/README_DEPENDENCIES.txt Mark

RE: [rules-users] Still can't create a standalone application

2007-09-05 Thread Garry Brother
Ok, so why not make this information (dependencies required to build outside Eclipse) available as part of the examples download? I mean, how many times do you want to answer this same question? Garry > Date: Wed, 5 Sep 2007 23:57:54 +0100 > From: [EMAIL PROTECTED] > To: rules-users@lists.jb

Re: [rules-users] Parameterized Queries?

2007-09-05 Thread Robert Crawford
On Sep 5, 2007, at 2:19 PM, Edson Tirelli wrote: I think Mark just updated documentation for that and it will be included in 4.0.2. Meanwhile: query "find errors for site"( int $param1, String $param2, ...) validationError: ValidationError( this.siteId == $param1) end Paramet

Re: [rules-users] Still can't create a standalone application

2007-09-05 Thread Mark Proctor
sigh I've zipped up droools-examples eclipse project with a populated lib directory and a dos .bat file. Should be enough to get you over the basics of java classpath configuration: http://wiki.jboss.org/wiki/PageInfo.jsp?page=JBossRules%2Fdrools-examples-401-runfib.zip Mark MarkA wrote: I'

[rules-users] Still can't create a standalone application

2007-09-05 Thread MarkA
I'm close to giving up! No matter what I do I get the noclassdeffound error. I can't get anything that uses Drools to work outside of eclipse. I've now tried using javac and I still get errors, the first is:

Re: [rules-users] Parameterized Queries?

2007-09-05 Thread Edson Tirelli
I think Mark just updated documentation for that and it will be included in 4.0.2. Meanwhile: query "find errors for site"( int $param1, String $param2, ...) validationError: ValidationError(this.siteId == $param1) end Parameter type is optional, and you can have as many parameters a

[rules-users] Parameterized Queries?

2007-09-05 Thread Robert Crawford
Does anyone know how to use parameterized queries? I'm trying to retrieve ONLY the results for a single installation, with a query like this: query "find errors for site" validationError: ValidationError(this.siteId == $1) end QueryResults results = session.getQueryResults("find errors for si

[rules-users] Error running BRSM insurance example

2007-09-05 Thread kissro
Hello, I downloaded the 4.0.1 Drools examples and I'm having trouble getting the BRMS example to run. I imported the rules repositor

Re: [rules-users] storing array in variable!

2007-09-05 Thread Edson Tirelli
Yes, but use "memberOf" instead of "in": rule XYZ when MyFact( $array : arrayAttr ) AnotherFact( attr memberOf $array ) then ... end []s Edson 2007/9/5, vamshidhar reddy chitti <[EMAIL PROTECTED]>: > > hi > how to store array of string values in a variable and later check

[rules-users] Building from source problem and an open stream problem

2007-09-05 Thread Brett M. Bergquist
I downloaded 4.0.1 source and when I try to build it using maven, I get the following error. Note that I can build 4.0.0 from the source with this same command. Obviously I am missing something but I'm a maven newbie and I really just want to fix a stream leak in drools and not really learn m

[rules-users] storing array in variable!

2007-09-05 Thread vamshidhar reddy chitti
hi how to store array of string values in a variable and later checking for some value to be in that array.. for example String[] str = new String[] { "Spouse", "Annuitant", "Nominee" }; am trying to store like this $test1 : Object($example : str) is it right? and i need to compare like Object2

RE: [rules-users] Usage of Drools in a RCP project

2007-09-05 Thread GRILLON, Jean Pierre
Hi, You might be interested by "DynamicImport-Package" (MANIFEST.MF) in your drools plugin, to allow it to dynamically access your classes that are located in another plugin. These configurations depend a lot on your plugins architecture/dependencies. Regards, Jean-Pierre Grillon -Message

Re: [rules-users] LHS functions not in eval()...

2007-09-05 Thread wasabifan
I did try calling it directly. I forget the exact error, but I would get an error while asserting (inserting) the data (I believe it was a class cast exception). I think we will end up adding custom accessor methods to our POJOs that return the properly formatted data (we were hoping to avoid th

Re: [rules-users] Usage of Drools in a RCP project

2007-09-05 Thread gurks
Thanx for your hints but you might have missunderstood something. All the classes needed from Drools plugin are found and I can initialize the ruleBase unless I try to add an import statement for a java class into the DRL file. When the DRL file gets parsed by Drools I get this strange exception.

[rules-users] how to generate rool.drl file from regular expression in excel sheet.

2007-09-05 Thread Gaurav2007
Hi All, I am using drool4.0.1 right now i am writing rool.drl file from the regular expression in excel sheet but now i want to automate this process. can you help me what is the right way to do this automation. Thanks, Gaurav -- View this message in context: http://www.nabble.com/how-to-gene

Re: [rules-users] Usage of Drools in a RCP project

2007-09-05 Thread Gaurav2007
i am also working in same technology i am not able to use service of one plug-in from another in following cases : 1) export the required package of dependent plug-in, 2) add all the required jars in classpath from runtime tab of mainfest.mf file of your plugin. 3) in run time configuration of app