p">}</span><span class="w">
</span></span></span></code></pre></div><ol start="5">
<li>
<p>Having an aggregate value, we can compare it to the threshold value
that is specified in the rule definition and fire an alert, if
necessary.</p>
</li>
<li>
<p>At the end, we register a clean-up timer using
<code>ctx.timerService().registerEventTimeTimer()</code>. This timer will be
responsible for removing the current transaction when it is going to
move out of scope.</p>
</li>
</ol>
<div class="alert alert-info" mar