<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello Nico,</p>
<p>you're right. The wiki should be (eventually) updated.<br>
</p>
<p>In the meanwhile please see <a moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Prism+API+migration+notes">https://wiki.evolveum.com/display/midPoint/Prism+API+migration+notes</a>.
For delta creation, the delta builder is the correct way to go.</p>
<p>Best regards,<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 16.10.2019 13:29, Nico wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGh9kZz03BMPTSf9M8pRnkMwGxtjrj32U1hki3M9+8gy4kSmig@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>i have updated our midpoint testsystem from 3.8 to 3.9 and
now to 4.0.</div>
<div>And now i have an error occurs in the scripted hook
section.<br>
</div>
<div>
<div>
<div><br>
</div>
<div>I have looked up the example:<br>
</div>
<div><a
href="https://wiki.evolveum.com/display/midPoint/Scripting+Hooks"
moz-do-not-send="true">https://wiki.evolveum.com/display/midPoint/Scripting+Hooks</a></div>
<div><br>
</div>
<div>Here it says:</div>
<div>
<div class="gmail-line gmail-number37 gmail-index36
gmail-alt2"><code class="gmail-html gmail-spaces"></code><code
class="gmail-html gmail-plain">assignmentDelta =
ContainerDelta.createModificationAdd(UserType.F_ASSIGNMENT,
UserType.class, prismContext, assignment);</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain">modelContext.getFocusContext().swallowToPrimaryDelta(assignmentDelta);</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain"><br>
</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain">This is
not working anymore in 4.0. I checked the docs at <a
href="https://evolveum.com/downloads/midpoint/4.0/midpoint-api-4.0-javadoc/com/evolveum/midpoint/prism/delta/ContainerDelta.html"
moz-do-not-send="true">https://evolveum.com/downloads/midpoint/4.0/midpoint-api-4.0-javadoc/com/evolveum/midpoint/prism/delta/ContainerDelta.html</a>
<br>
</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain">but the
method createModificationAdd is missing.</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain"><br>
</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain">So i
can't get it running. Maybe someone can give me a
tipp? The wiki article need's to be updated too i
think.</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain"><br>
</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain">Kind
regards <br>
</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain">Nico
Pätzelt<br>
</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain"><br>
</code></div>
<div class="gmail-line gmail-number38 gmail-index37
gmail-alt1"><code class="gmail-html gmail-plain"><br>
</code></div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>