diff --git a/templates/enable_workspace_clients_for_context.json.j2 b/templates/enable_workspace_clients_for_context.json.j2 index 7d1a53c..1180b52 100644 --- a/templates/enable_workspace_clients_for_context.json.j2 +++ b/templates/enable_workspace_clients_for_context.json.j2 @@ -59,6 +59,16 @@ "code" : "exec('import xml.etree.ElementTree as ET') or list(map(lambda n: n.text, ET.fromstring(data['xmlstring']).findall('Resource/Profile/Name')))", "xmlstring" : "${query_workspace_clients_on_icproxy.output.body}" } - } + }, + { + "name": "LAMBDA_TASK", + "taskReferenceName": "filtered_workspace_client_names", + "type": "LAMBDA", + "inputParameters": { + "names" : "${extract_workspace_client_names.output.result}", + "filter" : "${init.input.filter}", + "scriptExpression": "names=Java.from($.names); f=Java.from($.filter); if(f.length === 0) output=names; else { output=[]; for(i=0;i