Inputs array in DMN by javascript

Do you have any idea on how to make a contains ANY ITEM between arrays? I have an array of inputs and i need to output only the FIRST rule to have ANY item in my input array.

Ex: my input it [a,b,c] e i have 3 rules in dmn:

  • [g,f,i] output FIRST
  • [f,u,b] output SECOND
  • [o,p,a] output THIRD

In this case, it would output SECOND, coz it have the letter B and it is in input array. Im going crazy with this hehe

Do you have any idea on how to make a contains ANY ITEM between arrays? I have an array of inputs and i need to output only the FIRST rule to have ANY item in my input array.

Ex: my input it [a,b,c] e i have 3 rules in dmn:

  • [g,f,i] output FIRST
  • [f,u,b] output SECOND
  • [o,p,a] output THIRD

In this case, it would output SECOND, coz it have the letter B and it is in input array. Im going crazy with this hehe

Hi @sharma,

this post seems to be related to this one: Array of variable values in Request to match the input values in the row. Please have a look.

Does this help you?

Best regards,
Philipp

@Philipp_Ossler,
But instead of [FEEL expression], i want to use javascript.

So, please give me one example.

@sharma see Is it possible to do array Input? - #9 by StephenOTT for a solution