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 "ru...@{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.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to