Re: [rules-users] drools-eclipse sources?

2008-07-03 Thread Marcus Ilgner
On Thu, Jul 3, 2008 at 8:23 AM, Markus Helbig <[EMAIL PROTECTED]> wrote: > Hi everybody, > > where can i get the sources for drools-eclipse? I remember they were > in svn but currently i can't find them there. > > Cheers > > Markus Hi Markus, have a look at http://anonsvn.labs.jboss.com/labs/jbo

Re: [rules-users] how to find the rule name

2008-07-03 Thread Scott Burrows
The RHS of the rule uses Java syntax, so you need to declare all vars. You need to declare "rulename" as a String. Scott Burrows 407-739-7752 On Wed, Jul 2, 2008 at 5:09 PM, Marina <[EMAIL PROTECTED]> wrote: > Hello, > > I need to know the rule name of the rule that fired in the consequence par

Re: [rules-users] how to find the rule name

2008-07-03 Thread Marina
Thanks, Steven, Scott, yes, that worked. The reason I did not do it in the first place is because I was looking for examples of variable declaration in RHS and the only one I found was the PetStore.drl: then System.out.println( "Adding free Fish Food Sample to cart" ); purchas

[rules-users] insert a collection/ArrayList of facts

2008-07-03 Thread thomas kukofka
Hello, is it possible to insert an Arraylist of facts like this?: ArraList list; wm.insert (list); And if yes how can I iterate over the list in the when-part of the rule? The rule should be applied to all elements of the inserted list. A short drl-example would be perfect. Kind Regards Thomas

Re: [rules-users] insert a collection/ArrayList of facts

2008-07-03 Thread Marcus Ilgner
On Thu, Jul 3, 2008 at 2:55 PM, thomas kukofka <[EMAIL PROTECTED]> wrote: > Hello, > > is it possible to insert an Arraylist of facts like this?: > > ArraList list; > wm.insert (list); > > And if yes how can I iterate over the list in the when-part of the rule? > The rule should be applied to all e

RE: [rules-users] Drools optimization

2008-07-03 Thread Quinn, Dan
Hello All, I am implementing a Rules Engine with Drools that has a fact count in the millions. I have tried to remove some of the facts from the system to cut down on my load. To do this, a layer has been place "over" Drools that filters out facts before they enter the system. This approach

[rules-users] RE: Function Compilation Error when using JANINO

2008-07-03 Thread Garde, Varun (Equity Linked Technology)
Oh that was my bad, should have checked JANINO specs and saved everyone's time. Thanks a ton! Varun. This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please n

[rules-users] transitive closure

2008-07-03 Thread Paul Fodor
Dear Sir, I am new to Drools and I want to ask how can I implement the classical transitive closure in Drools. For instance we have a bunch of facts edge/2 and the transitive closure: reach(X,Y):- edge(X,Y). reach(X,Y):- edge(X,Z),reach(Z,Y). Should I create classes Edge and Reach with attribute

[rules-users] Re: transitive closure

2008-07-03 Thread Paul Fodor
On Thu, Jul 3, 2008 at 3:56 PM, Paul Fodor <[EMAIL PROTECTED]> wrote: > Dear Sir, > > I am new to Drools and I want to ask how can I implement the classical > transitive closure in Drools. For instance we have a bunch of facts > edge/2 and the transitive closure: > > reach(X,Y):- edge(X,Y). > reach

[rules-users] Re: transitive closure

2008-07-03 Thread Paul Fodor
Even if the package says "org.drools.examples", these files are not in the Drools examples. I am just using that package to write these files into while testing in Eclipse. On Thu, Jul 3, 2008 at 4:31 PM, Paul Fodor <[EMAIL PROTECTED]> wrote: > On Thu, Jul 3, 2008 at 3:56 PM, Paul Fodor <[EMAIL PR

[rules-users] Re: transitive closure

2008-07-03 Thread Paul Fodor
How can I check if an instance was not already inserted? For instance, my transitive closure works for non-cycled data, but it re-derives the same relations for cycled data. TransitiveClosure.drl: package org.drools.examples import org.drools.examples.TransitiveClosureExample.Edge; import org.dr

[rules-users] Comparing Strings (sort order)

2008-07-03 Thread Charles Binford
I'm trying to figure out how to compare strings in drools. I'd prefer to just be able to say something like: when obj(member > "string") This doesn't work because the > or < operations are not allowed (though I saw in a May 6th post Edson gave a pointer to how to add it.) Next I tried

Re: [rules-users] Re: transitive closure

2008-07-03 Thread Edson Tirelli
You will have to use regular insert() instead of insertLogical(). This is because: rule "reachDirect" salience 10 when e : Edge(s1 : source, t1 : target) not( Reach(source == s1, target == t1) ) then insertLogical( new Reach(e.getSource(),e.getTarget()) ); S