use pyeval to squeeze out service names
This commit is contained in:
parent
b6fda3975d
commit
768e965305
|
@ -70,7 +70,7 @@
|
|||
"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",
|
||||
"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}"
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue