Hi,
We are pretty new to the drools and trying to support an existing application that uses drools. We have a very basic requirement to log all the rule evaluation by drools as there is no current support mechanism to help our customers - whether the rule has a problem or the rule engine is not evaluating the rules properly.
As a first step, we could log all the events when the rule is successful i.e,
rule "ab"
dialect "mvel"
when
$systemStatusPolicy: Policy( policyTypeId == 10, name == "CPU_EMMSDB" )
$possibleAlert: PossibleAlert( eventTypeId == 7, name == "CPU_USAGE", size >= $systemStatusPolicy.size )
then
$possibleAlert.setAlert( true, "CPU_USAGE_EMMSDB", "Notify_EMMSDB", "CPU_USAGE_EMMSDB" );
System.out.println("condition met - success")
end
However, we could not find a way to log the failure evaluation since there is no provision to print the condition of when on the when segment. Please request help/advice to get this implemented.
Regards/Harris