<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello Emily,</p>
<p>unfortunately, RunScript is outdated. We had no time to adapt it
to recent changes in midPoint. If I would have a little time
before 3.6 release, I could do it... but I doubt I will have.</p>
<p>What I recommend:</p>
<ol>
<li>I have significantly cleaned-up the wiki page for bulk actions
(a.k.a. midPoint scripting): <a
href="https://wiki.evolveum.com/pages/viewpage.action?pageId=13991970">https://wiki.evolveum.com/pages/viewpage.action?pageId=13991970</a></li>
<li>The working examples can be found in <a
href="https://github.com/Evolveum/midpoint/tree/master/samples/tasks/bulk-actions">samples</a>
directory (as you say) but also among <a
href="https://github.com/Evolveum/midpoint/tree/master/model/model-intest/src/test/resources/scripting">integration
tests</a>.</li>
<li>If you need to call bulk actions via network, it is better to
use the REST interface. <a
href="https://wiki.evolveum.com/display/midPoint/Bulk+password+generation+HOWTO">Here
is an example</a>.</li>
<li>But if you'd need to use RunScript and you want to be sure it
will work, please contact Igor Farinic. He will arrange it.<br>
</li>
</ol>
<p>I apologize for such a late answer. (Had too many messages in the
mailbox.) <br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 05.05.2017 18:47, Emily Backes
wrote:<br>
</div>
<blockquote
cite="mid:20170505094700.1db725b16242ef18845aeffe@symas.com"
type="cite">
<pre wrap="">Hello,
I've been looking at the bulk interface and the enticing confluence
pages in particular-- MidScript looks very useful, even in XML form. I
recognize that this area is still in active development, but are there
working examples?
I realize there are a multitude of xml snippets in the tree with
<s:search> and friends, but when I try to use these with RunScript I get
an error:
Endpoint URL: <a class="moz-txt-link-freetext" href="http://localhost:8080/midpoint/model/model-3">http://localhost:8080/midpoint/model/model-3</a>
com.sun.xml.internal.ws.streaming.XMLStreamReaderException: XML
reader error: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[1,50]
Message: White spaces are required between publicId and systemId.
This usually means the DOCTYPE is missing a systemId entirely, but none
of the examples use DOCTYPE or even the <?xml?> bit. What am I doing
wrong, or is there a working example handy somewhere?
</pre>
</blockquote>
<br>
</body>
</html>