I am pretty new to Drools and exploring the capabilities drools decision tables. I have downloaded Drools 6.2.0 examples and modified the one provided for decision table. In that I want to have policy condition to be removed as shown in image below
Here policy only needs to be result object but I am getting below error.
text=Rule Compilation error policy cannot be resolved or is not a field
I am not sure what to write under first ACTION column to make it work as I have tried different values such as policy:Policy, Policy etc.
Below is the drl output I receive for the above decision table layout.
// rule values at C10, header at C5
rule "Pricing bracket_10"
when
Driver(age >= 18, age <= 24, locationRiskProfile == "LOW", priorClaims == "1")
then
policy.setBasePrice(450);
end
I have tried to check documentation but I was not able to find any way to make it working. Note that I have not modified anything in the source code of the example. Only the decision table layout in the excel is changed.
Any pointers will be helpful.
