Have you considered using Drools built in phase control instead of your own? Either agenda groups or a rule flow should do the trick and I neither of these options affect logical inserts.<br><br><div class="gmail_quote">On Sun, Feb 15, 2009 at 4:07 PM, Andreas Volz <span dir="ltr">&lt;<a href="mailto:andreas.volz@valtech.de">andreas.volz@valtech.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I have a question concerning the truth maintenance mechanism in Drools:<br>
Is it possible to exclude some preconditions from truth maintenance?<br>
<br>
We want to implement a rule flow by using an attribute of a special<br>
fact (ProcessPhaseController.phase).<br>
We have some phases that we want to traverse. In each phase only some<br>
of our rules should be activated.<br>
Therefore all of our rules test for a certain phase; e.g.:<br>
<br>
when<br>
 &nbsp; ProcessPhaseController(phase == ProcessPhase.EXEC)<br>
...<br>
<br>
When no rule of the current phase is activated, a special rule changes<br>
the phase to the next one and the rules of the next phase are evaluated.<br>
<br>
The problem now is that we have some rules with logical inserts. So<br>
each time the phase is changed, all of these inserts are retracted.<br>
To prevent this I would like to exclude the condition<br>
&quot;ProcessPhaseController(phase == ProcessPhase.EXEC)&quot; from truth<br>
maintenance. Is this possible?<br>
<br>
Thanks in advance!<br>
<br>
Cheers,<br>
Andreas<br>
<br>
-- <br>
Andreas Volz<br>
Consultant<br>
mailto:<a href="mailto:andreas.volz@valtech.de" target="_blank">andreas.volz@valtech.de</a><br>
Mobile: +49 173 5955343<br>
<br>
Valtech GmbH<br>
Zweigstraße 10<br>
80336 München<br>
Germany<br>
<br>
Phone: +49 89 893242-0<br>
Fax: +49 89 893242-31<br>
<br>
<a href="http://www.valtech.de" target="_blank">http://www.valtech.de</a><br>
<br>
Geschäftsführer: Ingo Kriescher<br>
Amtsgericht Düsseldorf HRB48672<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>