From b6fda3975dba922cea6250c2b50982c4b6076442 Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Wed, 30 Jun 2021 17:42:22 +0200 Subject: [PATCH] use pyeval to squeeze out service names --- templates/add_all_system_services_to_vre.json.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/add_all_system_services_to_vre.json.j2 b/templates/add_all_system_services_to_vre.json.j2 index 47d1eae..ab56323 100644 --- a/templates/add_all_system_services_to_vre.json.j2 +++ b/templates/add_all_system_services_to_vre.json.j2 @@ -65,6 +65,15 @@ } } }, + { + "name" : "pyeval", + "taskReferenceName" : "extract_client_ids", + "type" : "SIMPLE", + "inputParameters" : { + "code" : "import xml.etree.ElementTree as ET;\nout=[]\nfor n in ET.fromstring(data.xmlstring).findAll('Resource/Profile/Name'):out.append(n.text);\nreturn out", + "xmlstring" : "${retrieve_system_services.output.body}" + } + }, { "name" : "pyrest", "taskReferenceName" : "authorize",