apply filter fix

This commit is contained in:
Marco Lettere 2021-11-25 12:45:28 +01:00
parent 7864b81016
commit c6a0a1e0b7
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@
"type": "LAMBDA",
"inputParameters": {
"names" : "${extract_workspace_client_names.output.result}",
"filter" : "${init.output.filter}",
"filter" : "${init.output.result.filter}",
"scriptExpression": "names=Java.from($.names); f=Java.from($.filter); if(f.length === 0) output=names; else { output=[]; for(i=0;i<names.length;i++){ if(filter.indexOf(names[i]) !== -1) output.push(names[i])}} return { 'names' : Java.to(output, 'java.lang.String[]')}"
}
}