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
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
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
_
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?
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
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