I have a simple rule file
rule 'rule name 1'
when
$i: Test(param1 < 20)
then
$i.setStatus('Param1 has invalid value');
end
rule 'rule name 2'
when
$i: Test(param1 > 20)
then
$i.setStatus('Param2 has invalid value');
end
rule 'rule name 3'
when
$i: Test(param1 == 100)
then
$i.setStatus('Param3 has invalid value');
end
I use StatelessKieSession to execute a data object on the rules above.
Qn 1: What is the simplest way to trigger a method/listener after executing ALL the rules or How do we know all the rules have been executed?
Qn 2: If we can add a listener to the StatelessKieSession object is there a way to pass an object to the listener?