Hi,
I have been tasked with porting an old application that relies on Drools 2.5 to Java 11+
for which I decided you use the latest version of Drools (8.33). I have a decision table in the form of an .xls file in production that will not compile in 8.33 without a re-write. I have attached what I have re-written so far with much left to go but at this point it breaks.
The failure is at Rule #06 and the output at runtime is:
Rule Compilation error : [Rule name='O6']
fill cannot be resolved
Below is the LHS output for rule #06:
when
leg: Leg(securityType == "OPT")
order: OrderMaster(capacity == "C")
then
But what I need is a fill() with an empty constraint so that the RHS can set values on it:
when
leg: Leg( securityType == "OPT" )
fill: Fill( ) // <-- I need this
order: OrderMaster(capacity == "C")
then
fill.setFeeDetail(fill.getFeeDetail() + "," + "R3");
....
What am I missing in the table?
Thanks