Is it possible to do array Input?

Yes that helps.

For others future ref here is a solution for using javascript to interate over DMN inputs that are arrays:

inputArray.elements().stream().anyMatch(function(e){
   return java.util.stream.Stream.of("value1","value2").anyMatch(function(x){
      return x == e.value()
   })
})

where inputArray is array/collection you are passing into the DMN’s input, and the value1, value2, etc is the list of values you are validating against.

1 Like