Ok, I think I'm starting to understand. Could you create another fact object
that is a pair of encapsulating objects, one that is inserted, and another
that you retrieve from your global?
It would look something like:
public class EncapsulatingObjectPair {
EncapsulatingObject a;
EncapsulatingObject b;
//getters setters etc..
}
And then you'd have a rule that looks like this:
WHEN
$object : EncapsulatingObject($key : id)
THEN
insert new EncapsulatingObjectPair($object,
encapsulationMap.get($key+""));
END
And a second rule that looks something like:
WHEN
EncapsulatingObjectPair(secondEncapsulatingMap != null)
THEN
do something..
END
I haven't tried to compile this.. but the general idea is there.
--
View this message in context:
http://drools.46999.n3.nabble.com/irrational-behaviour-by-drools-engine-t...
Sent from the Drools: User forum mailing list archive at
Nabble.com.