[rules-users] Can we set a default value for emlpty cells in Drools templates

2012-01-20 Thread swaroop
Hi, I am trying to write a template and came across a scenario where one of the condition cell $a : Company(condition), When condition is left blank then entire predicate is missed and iam using the ref of the company obj $a to set some values which is failing as the

Re: [rules-users] Can we set a default value for emlpty cells in Drools templates

2012-01-20 Thread Swindells, Thomas
There isn't a nice way to do this unfortunately. One hack around it is to have two columns with the object merged across them The first column would have the condition $a : Company(this != $param), every cell in the column is then given the value 'null'. This would then always ensure that $a will

Re: [rules-users] Can we set a default value for emlpty cells in Drools templates

2012-01-20 Thread Michael Anstis
We have also added the ability to use BRL Fragments as columns in the guided Decision tables (for 5.4.0.beta2). http://blog.athico.com/2012/01/guided-decision-table-supports-brl.html You could then define a column as:- $c : Company() Company (this == $c, something = {templateKey} ) In rows