$f : UserFact(fact1 == 1);
>> then
>> insertLogical(new CreatedFact($f));
>> end
>> you will also have to overide equals and hashcode for CreatedFact so that
>> several CreatedFacts referencing the same UserFact are considered equal...
>>
>
considered equal...
>
> But with this solution CreatedFact will always be up to date with the value
> of UserFact even without firing the rules and maybe it's not what you
> want...
>
> -Patrick
>
> -Message d'origine-
> *De :* [EMAIL PROTECTED] [mailto:
&
#x27;origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de tim tim
Envoyé : mardi, 7. octobre 2008 16:53
À : rules-users@lists.jboss.org
Objet : [rules-users] insertLogical and modifyRetract
Hello,
I am a bit confused about how insertLogical() supposed to work in drools 5.
whe
Hello,
I am a bit confused about how insertLogical() supposed to work in drools 5.
when i have a rule such as:
rule "fact = 1"
when
$f : UserFact(fact1 == 1);
then
insertLogical(new CreatedFact($f.getFact2()));
end
now i change $f in such a way, that the rule will fire