<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(34, 34, 34); "><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);">Please</span></span><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"> <span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(34, 34, 34); ">don</span>'<span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(34, 34, 34); ">t</span> <span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(34, 34, 34); ">email</span> <span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(34, 34, 34); ">me</span> direct. I won'<span class="il" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(34, 34, 34); ">t</span> reply in the future. All questions and answers are of value to the community as a whole.</span><div>
<br></div><div>To quote what I replied to an almost identical request a couple of days ago and posted to the drools-user mailing list.....</div><div><br></div><div>"AFAIK, Activation Cancelled events would trigger in reaction to the revocation of a logically inserted fact that caused an activation to trigger in the first place. It would not help identifying which pattern in a rule was not matched causing your rule not to activate".</div>
</span><br><div class="gmail_quote">On 4 November 2010 14:41, <span dir="ltr"><<a href="mailto:nkumar@objectwave.com">nkumar@objectwave.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi, thanks for helping me out with that code. i have one more question, in activation cancelled event, it never gets executed.<br>
<br>
@Override<br>
public void activationCancelled(ActivationCancelledEvent event) {<br>
final Rule rule = event.getActivation().getRule();<br>
final String ruleName = rule.getName();<br>
System.out.println("Activation cancelled --> " + ruleName);<br>
rules.add(rule);<br>
ruleNames.add(ruleName);<br>
}<br>
<br>
<br>
@Override<br>
public void activationCreated(ActivationCreatedEvent event) {<br>
final Rule rule = event.getActivation().getRule();<br>
final String ruleName = rule.getName();<br>
System.out.println("Activation created --> " + ruleName);<br>
rules.remove(rule);<br>
ruleNames.remove(ruleName);<br>
}<br>
<br>
<br>
but my output never show this. i only have Activation created printed in console. which rule is not executed, that is not printing at the time when it is not activated. Please have a look on this. My output is<br>
<br>
Rules not executed<br>
- GoodBye-rule<br>
- Hello World-rule<br>
- Never fires<br>
Activation created --> Hello World-rule<br>
Hello World<br>
Activation created --> GoodBye-rule<br>
Goodbye cruel world<br>
Rules not executed<br>
- Never fires<br>
<br>
<br>
this is the same code which you sent me. Never fires is the rule which never gets executed. we print this from the list of rules we have when we load the rule file. even if i skip that activation canceled it prints the same result.<br>
<br>
<br>
thanks<br>
</blockquote></div><br>