I am trying to execute below rule in Drools through Talend
rule "rule1"
dialect "mvel"
no-loop true
when
trans : row( BUS_AREA_CD == null )
then
trans.ACTUAL_PRODUCT_LINE_CODE="06"
end
rule "rule2"
dialect "mvel"
no-loop true
when
trans : row( BUS_AREA_CD != null)
then
trans.ACTUAL_PRODUCT_LINE_CODE="96"
end
Below is the data object(row) that I have created.
Below is the test scenario that I have executed
when I execute the test scenario with BUS_AREA_CD = null, it is returning blank value instead of "96".
Can someone help me to resolve this issue?
row
defined? What facts did you insert? - As it is, the answer is "no". – laune