Collecting all input parameters

Hi,
I have a DMN with a lot of inputs (they’re all String variables).
I need to create a list with the not null ones.

I came up with a literal expression which creates a list like this:
[Input 1, Input 2, …, Input 18] [item != null]

Is there a more elegant way to gather all parameters?
Or do you think naming them one by one is the only approach?

Thank you,

Hi @joseroblesv,

Why not use a single list variable?
so inputs should be provided as mylist = ["A", "B"] instead of using two separate variables

You can use expressions to refer to a specific input in your decision.

test_list_input.dmn (2.0 KB)