[rules-users] Rule Templates and null values

Bernd Rücker bernd.ruecker at camunda.com
Fri Feb 26 08:22:16 EST 2010


Okay, digging more into the source code I found the method
“replaceOptionals” which does exactly what I need. So despite the missing
docs, a line IS skipped if the according parameter used in that line is
null. Perfect :-)



Sorry for the interruption




Von: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] Im Auftrag von Bernd Rücker
Gesendet: Freitag, 26. Februar 2010 12:30
An: rules-users at lists.jboss.org
Betreff: [rules-users] Rule Templates and null values



Hi all.



I question myself if I can get the Rule Templates to works like it is in
Excel: If one “parameter” is not set (null), the whole line of the
template is skipped?



Since we want to build a template for a lot of rules, fed from a database.
There some conditions can be null, so they should not be included in the
rule at all. Has anybody an idea to this? I haven’t found anything,
neither in the docs, nor in the testcases




Thanks a lot

Bernd



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100226/fdee648e/attachment.html 


More information about the rules-users mailing list