Would the other retractions be automatically provided for by Drools' Truth Maintenance?<br><br>Otherwise, passing a StatefulKnowledgeSession to a WorkingMemoryEventHandler subclass and invoking it's methods should, IMO, not be an issue.<br>
<br>Have you tried it and experienced issues? <br><br><div class="gmail_quote">On 6 December 2010 09:32, Bruno Freudensprung <span dir="ltr"><<a href="mailto:bruno.freudensprung@temis.com">bruno.freudensprung@temis.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi everyone,<br>
<br>
Do you know if it is possible to insert/modify/retract facts in a<br>
working memory event handler?<br>
<br>
Here is my use case actually: I want my users to be able to write rules<br>
like "When ... Then retract X" without having to bother with the<br>
consequences of retracting X on the other objects of the sessions (some<br>
of them might be retracted as well). These consequences can be expressed<br>
by rules, but I would like them to be kind of "part of the framework"<br>
and it would be easier for users if those rules were implicitly defined.<br>
<br>
Many thanks in advance for any hint,<br>
Best regards,<br>
<br>
Bruno.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>