[rules-users] Checking multiple null values
f.cima
f.cima at yahoo.it
Mon Jan 18 06:14:40 EST 2010
Hi Edson,
thank you for your reply.
I cannot use the solution $1 != null && $2 != null && $3 != null because the
number of parameters can be different in different rows.
I found a partial solution writing:
CONDITION
myBean:Bean
$param
My rule
...
and on the cell I write p1 == null, p2 == null and so on.
With this solution I don't need n columns anymore, but I must write "==
null" in the parameter rows. I would like to find a better solution. Have
you got any ideas?
Regards
Fabiano
Edson Tirelli-4 wrote:
>
> Not exactly sure about your use case, but did you tried something like:
>
> $1 != null && $2 != null && $3 != null
>
> Then on the cell you write:
>
> p1,p2,p3
>
> What I am not sure about is what is the difference for you between that
> and simply writing:
>
> p1 != null && p2 != null && p3 != null
>
> Edson
>
> [CUT]
>
>
--
View this message in context: http://n3.nabble.com/Checking-multiple-null-values-tp120674p125845.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list