[rules-users] To insert facts or use the find clause?

2008-04-17 Thread Raffi Khatchadourian
I would like to use Drools to reason about a graph structure using queries. The graph consists of a collection of nodes, which in turn each have a collection of edges to nodes. Currently, I have a single fact in the Drools working memory, the graph. My queries then use the "from" clause to obtain i

Re: [rules-users] Using global variables in functions

2008-04-17 Thread Edson Tirelli
Not at this moment. []s Edson 2008/4/17 José Arrarte <[EMAIL PROTECTED]>: > Hello all, > > Is there a way I can use a global variable inside a function definition > without having to pass it as a parameter? > > I'd like to be able to use a log4j Logger instance (declared as a global > v

[rules-users] Using global variables in functions

2008-04-17 Thread José Arrarte
Hello all, Is there a way I can use a global variable inside a function definition without having to pass it as a parameter? I'd like to be able to use a log4j Logger instance (declared as a global variable) inside functions. Best regards, José Arrarte _

RE: [rules-users] Why double rule activation?

2008-04-17 Thread Anstis, Michael (M.)
My test was ran with 4.0.5, but Eclipse plug-in 4.0.3 - part of my lazy upgrade process ;-) I will re-run with the latest Eclipse plug-in and see if the Audit View is correct (in 4.0.3 it shows 3 inserts, 3 activations and 3 executions). Can you run my test and confirm you get what's expected?

RE: [rules-users] Why double rule activation?

2008-04-17 Thread Bagwell, Allen F
I appreciate the effort. The problem isn't in the logger. It's just standing in for System.out so that I can reference a file for output (it's an extension of log4j). The actual Drools audit view is reporting double activation and execution on insert and update of the objects. I'm using a loo

RE: [rules-users] Why double rule activation?

2008-04-17 Thread Anstis, Michael (M.)
I have tried to re-produce using "System.out.println" instead of IELogger and I don't get any double activations :-( Could the problem be elsewhere (e.g. IELogger?). package com.sample import com.sample.MyVariable; rule "Light is off" when $brightness : MyVariable(uniqu