See below I have tried the example from the page below. Every things works fine but I am not getting the rule applied, and generated status applicable from this rule.
I am able to load data from table in to the test case.
but when System.out.println(aa.getName() + "," + aa.getStatus());
The aa.getstatus is null.
The dynamic generated rule .
package org.drools.template.jdbc;
dialect "mvel"
rule "ageRule_7"
when
$person : Person(age>=81 && age<100)
then
$person.status=":" + "Old Aged";
end
rule "ageRule_6"
when
$person : Person(age>=61 && age<81)
then
$person.status=":" + "Senior Citizen";
end
rule "ageRule_5"<