<div dir="ltr">hi,<div><br></div><div>i have the following rule file :</div><div><br></div><div><div>rule &quot;size&quot;</div><div><br></div><div>when</div><div> $p: RuleContext($size: getOldContext().getParent().getUsableSpace() &gt; (30*1024*1024))  </div>
<div>then</div><div>   Event event = new Event(&quot;folder almost full&quot;, $p.getOldContext().getParent(), new Date());</div><div>   event.display();</div><div>end</div></div><div><br></div><div><br></div><div>im loading this rule file and executing the rules once in 10 seconds in a continuous loop from my java class. assuming the when part is always true, the event object created gets displayed each and every time once in 10 seconds. i want to create the object only once with the fact that the event is already there.. i.e.  i dont want to create the object again if it is already created.. how can i do that?</div>
<div><br></div><div><br></div><div>Thanks.</div></div>