use pyeval to squeeze out service names

This commit is contained in:
Marco Lettere 2021-06-30 18:12:12 +02:00
parent b6fda3975d
commit 768e965305
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@
"taskReferenceName" : "extract_client_ids", "taskReferenceName" : "extract_client_ids",
"type" : "SIMPLE", "type" : "SIMPLE",
"inputParameters" : { "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", "code" : "exec('import xml.etree.ElementTree as ET') or list(map(lambda n: n.text, ET.fromstring(data['xmlstring']).findall('Resource/Profile/Name')))",
"xmlstring" : "${retrieve_system_services.output.body}" "xmlstring" : "${retrieve_system_services.output.body}"
} }
}, },