<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">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">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>