[rules-users] Rule Templates with empty cells

jschmied nabble at juergenschmied.de
Mon Jan 25 17:32:20 EST 2010


Hi!

If I write rules in a decision table I can leave cells empty if I don't need
to use all of the conditions in a row.

How can I do this with the ExternalSpreadsheetCompiler? 

I would need something like:

rule "rule_@{row.rowNumber}"
    when
       $s : MyType1()
@ifDefined{field1}       $e : MyType2(val1 == "@{field1}") from $s.SUB;
@ifDefined{field2}       $e : MyType2(val2 == "@{field2}") from $s.SUB;
    then
         retract($s);
end


Thanks

Juergen
-- 
View this message in context: http://n3.nabble.com/Rule-Templates-with-empty-cells-tp138571p138571.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list