<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr">Hi colleagues,<div>Is it possible to use nested queries like in the script below?<br><div>I can see that "input/name" is unavailable to use in the second query. </div><div><div style="background-color:rgb(30,31,34)"><pre style="font-family:"JetBrains Mono",monospace;font-size:9.8pt"><span style="color:rgb(213,183,120)"><</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:executeScript </span><font color="#bcbec4">xmlns:</font><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(106,171,115)">="<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/model/scripting-3</a>"<br></span><span style="color:rgb(106,171,115)">                 </span><font color="#bcbec4">xmlns:</font><span style="color:rgb(199,125,187)">c</span><span style="color:rgb(106,171,115)">="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"<br></span><span style="color:rgb(106,171,115)">                 </span><font color="#bcbec4">xmlns:</font><span style="color:rgb(199,125,187)">q</span><span style="color:rgb(106,171,115)">="<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank">http://prism.evolveum.com/xml/ns/public/query-3</a>"</span><span style="color:rgb(213,183,120)">><br></span><span style="color:rgb(213,183,120)">    <</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:search><br></span><span style="color:rgb(213,183,120)">        <</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:type></span><font color="#bcbec4">c:RoleType</font><span style="color:rgb(213,183,120)"></</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:type><br></span><span style="color:rgb(213,183,120)">        <</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:searchFilter><br></span><span style="color:rgb(213,183,120)">            <</span><span style="color:rgb(199,125,187)">q</span><span style="color:rgb(213,183,120)">:text></span><span style="color:rgb(188,190,196);background-color:rgb(41,60,64)">archetypeRef matches (oid="4166fb28-321a-48ef-a127-babda8cbdb2c")</span><span style="color:rgb(213,183,120)"></</span><span style="color:rgb(199,125,187)">q</span><span style="color:rgb(213,183,120)">:text><br></span><span style="color:rgb(213,183,120)">        </</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:searchFilter><br></span><span style="color:rgb(122,126,133)"><!--<br></span><span style="color:rgb(122,126,133)">        <s:execute><br></span><span style="color:rgb(122,126,133)">            <s:script><br></span><span style="color:rgb(122,126,133)">                <c:code><a href="http://log.info" target="_blank">log.info</a>("{}", <a href="http://input.name" target="_blank">input.name</a>)</c:code><br></span><span style="color:rgb(122,126,133)">            </s:script><br></span><span style="color:rgb(122,126,133)">        </s:execute><br></span><span style="color:rgb(122,126,133)">--><br></span><span style="color:rgb(122,126,133)">        </span><span style="color:rgb(213,183,120)"><</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:search><br></span><span style="color:rgb(213,183,120)">            <</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:type></span><font color="#bcbec4">c:UserType</font><span style="color:rgb(213,183,120)"></</span><span style="color:rgb(199,125,187)">s</span><font color="#d5b778">:type></font></pre><pre style="color:rgb(188,190,196);font-family:"JetBrains Mono",monospace;font-size:9.8pt"><span style="color:rgb(213,183,120)">            <</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:</span>searchFilter<span style="color:rgb(213,183,120)">><br></span><span style="color:rgb(213,183,120)">                <</span><span style="color:rgb(199,125,187)">q</span><span style="color:rgb(213,183,120)">:text>title</span><span style="background-color:rgb(41,60,64)"> = $input/name</span><span style="color:rgb(213,183,120)"></</span><span style="color:rgb(199,125,187)">q</span><span style="color:rgb(213,183,120)">:text></span><span style="color:rgb(213,183,120)"><br></span><span style="color:rgb(213,183,120)">            </</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:</span>searchFilter<span style="color:rgb(213,183,120)">><br></span><span style="color:rgb(213,183,120)">            <</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:log/><br></span><span style="color:rgb(213,183,120)">        </</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:search><br></span><span style="color:rgb(213,183,120)">    </</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:search><br></span><span style="color:rgb(213,183,120)"></</span><span style="color:rgb(199,125,187)">s</span><span style="color:rgb(213,183,120)">:executeScript></span></pre></div></div></div></div>
</div></div>