Hi guys,
Now I am strugglin' with "fact id checking"
or whatever we can call it.... :D
Let's take into account the followong
scenario:
I have class A (it's just a name) javabeans to be
inserted into the WM.
I define two objects of class A: A1 and
A2.
Somewhere I do "insert(A1)" and "insert(A2)" (
let's say I do it in the same package of R1 and R2..see below...)
Then I define two different rules R1 and R2 that
reason over class "A" facts (let's say R1 and R2 are in the same package)
.
The point is.... I want R1 to fire only on A1
and R2 only on A2.
Is that possible in drools? Is there a sort of
"fact id" I can reason over?
I do not think globals will be of any help, cause
in the guide i have read that globals should never be used within
LHS.
We should never reason over globals.
Let me know.
Massi