[midPoint] Nested search
Yakov Revyakin
yrevyakin at gmail.com
Mon Nov 3 14:19:47 CET 2025
Hi colleagues,
Is it possible to use nested queries like in the script below?
I can see that "input/name" is unavailable to use in the second query.
<s:executeScript
xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3">
<s:search>
<s:type>c:RoleType</s:type>
<s:searchFilter>
<q:text>archetypeRef matches
(oid="4166fb28-321a-48ef-a127-babda8cbdb2c")</q:text>
</s:searchFilter>
<!--
<s:execute>
<s:script>
<c:code>log.info("{}", input.name)</c:code>
</s:script>
</s:execute>
-->
<s:search>
<s:type>c:UserType</s:type>
<s:searchFilter>
<q:text>title = $input/name</q:text>
</s:searchFilter>
<s:log/>
</s:search>
</s:search>
</s:executeScript>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20251103/21f57ec6/attachment.htm>
More information about the midPoint
mailing list