<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Could someone at Evolveum send a few sentences to the list about problems for which the Prism construct is the best solution? Are there any caveats about its use?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
           Regards,  Keith (hazelton@internet2.edu)<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Keith Hazelton <keith.hazelton@wisc.edu><br>
<b>Sent:</b> Friday, October 18, 2019 12:24 AM<br>
<b>To:</b> Keith Hazelton <hazelton@internet2.edu><br>
<b>Subject:</b> FW: [midPoint] Scripted Hook v4.0 createModificationAdd missing</font>
<div> </div>
</div>
<div><strong>
<div><font face="Tahoma" color="#000000" size="2"> </font></div>
</strong>
<hr tabindex="-1" style="display:inline-block; width:98%">
<font face="Tahoma" size="2"><b>From:</b> midPointOn Behalf OfNico<br>
<b>Sent:</b> Friday, October 18, 2019 12:23:35 AM (UTC-06:00) Central Time (US & Canada)<br>
<b>To:</b> midPoint General Discussion<br>
<b>Subject:</b> Re: [midPoint] Scripted Hook v4.0 createModificationAdd missing<br>
</font><br>
<div></div>
<div>
<div dir="ltr">
<div>Hi Pavol,</div>
<div>thanks for the link. I have get it working now.</div>
<div>This is what i changed:</div>
<div>Old pre v4.0:</div>
<div>assignmentDelta = ContainerDelta.createModificationAdd(UserType.F_ASSIGNMENT, UserType, prismContext, assignment);</div>
<div>New:</div>
<div>assignmentDelta = prismContext.deltaFactory().container().createModificationAdd(UserType.F_ASSIGNMENT, UserType,assignment)</div>
<div><br>
</div>
<div>Kind regards</div>
<div>Nico Pätzelt<br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">Am Do., 17. Okt. 2019 um 10:59 Uhr schrieb Pavol Mederly <<a href="mailto:mederly@evolveum.com">mederly@evolveum.com</a>>:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div 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 href="https://wiki.evolveum.com/display/midPoint/Prism+API+migration+notes" target="_blank">
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 cols="72">Pavol Mederly
Software developer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
<div>On 16.10.2019 13:29, Nico wrote:<br>
</div>
<blockquote type="cite">
<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" target="_blank">https://wiki.evolveum.com/display/midPoint/Scripting+Hooks</a></div>
<div><br>
</div>
<div>Here it says:</div>
<div>
<div><code></code><code>assignmentDelta = ContainerDelta.createModificationAdd(UserType.F_ASSIGNMENT, UserType.class, prismContext, assignment);</code></div>
<div><code>modelContext.getFocusContext().swallowToPrimaryDelta(assignmentDelta);</code></div>
<div><code><br>
</code></div>
<div><code>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" target="_blank">
https://evolveum.com/downloads/midpoint/4.0/midpoint-api-4.0-javadoc/com/evolveum/midpoint/prism/delta/ContainerDelta.html</a>
<br>
</code></div>
<div><code>but the method createModificationAdd is missing.</code></div>
<div><code><br>
</code></div>
<div><code>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><code><br>
</code></div>
<div><code>Kind regards <br>
</code></div>
<div><code>Nico Pätzelt<br>
</code></div>
<div><code><br>
</code></div>
<div><code><br>
</code></div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote>
</div>
</div>
</div>
</body>
</html>