Is it possible to generate drl file in OOPATH format from a spreadsheet?
Is there a flag to switch?
I don’t find any examples.
This spreadsheet
generates a traditional syntax drl:
package com....;
unit OrderUnit;
import com....OrderRequest;
rule “LOYAL_cusomer_v001”
when
OrderRequest(customerType.getValue1 == “LOYAL”)
then
orderDiscount.setDiscount(orderDiscount.getDiscount() + 5);
end
When I ran unitInstance.fire(), the rule is not recognized.
It works when I modify the drl as following and test against this file directly :
when
orderRequest[ customerType.getValue1 == "LOYAL" ]