java - How to log everything in 'when' part of Drools rule? -
i have log responsible fire rule in drools objects, conditions etc.
i able objects using agendaeventlistener , writing below code in beforeactivationfired method of it.
@override public void beforeactivationfired(beforeactivationfiredevent event){ event.getactivation().getobjects(); }
but how conditions , methods called on object? have object used global variable used validate values against values in cache i.e. in when part of rules different methods on global object(have hundreds of methods in it) called.
now want have information on methods called can log information before hand because after execution values in cache might change.
for example -
if in when part below condition there wish know condition value of both sides in condition i.e. value of $val $cache.getcurrenttimestamp()(please note method called on cache not known beforehand).
$val : timestamp, $val == $cache.getcurrenttimestamp()
how can achieve task?
Comments
Post a Comment