[midPoint] Scripted Hook v4.0 createModificationAdd missing
Nico
paetni1 at gmail.com
Fri Oct 18 07:23:35 CEST 2019
Hi Pavol,
thanks for the link. I have get it working now.
This is what i changed:
Old pre v4.0:
assignmentDelta =
ContainerDelta.createModificationAdd(UserType.F_ASSIGNMENT, UserType,
prismContext, assignment);
New:
assignmentDelta =
prismContext.deltaFactory().container().createModificationAdd(UserType.F_ASSIGNMENT,
UserType,assignment)
Kind regards
Nico Pätzelt
Am Do., 17. Okt. 2019 um 10:59 Uhr schrieb Pavol Mederly <
mederly at evolveum.com>:
> Hello Nico,
>
> you're right. The wiki should be (eventually) updated.
>
> In the meanwhile please see
> https://wiki.evolveum.com/display/midPoint/Prism+API+migration+notes. For
> delta creation, the delta builder is the correct way to go.
>
> Best regards,
>
> Pavol Mederly
> Software developerevolveum.com
>
> On 16.10.2019 13:29, Nico wrote:
>
> Hello,
>
> i have updated our midpoint testsystem from 3.8 to 3.9 and now to 4.0.
> And now i have an error occurs in the scripted hook section.
>
> I have looked up the example:
> https://wiki.evolveum.com/display/midPoint/Scripting+Hooks
>
> Here it says:
> assignmentDelta =
> ContainerDelta.createModificationAdd(UserType.F_ASSIGNMENT, UserType.class,
> prismContext, assignment);
> modelContext.getFocusContext().swallowToPrimaryDelta(assignmentDelta);
>
> This is not working anymore in 4.0. I checked the docs at
> https://evolveum.com/downloads/midpoint/4.0/midpoint-api-4.0-javadoc/com/evolveum/midpoint/prism/delta/ContainerDelta.html
> but the method createModificationAdd is missing.
>
> 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.
>
> Kind regards
> Nico Pätzelt
>
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20191018/102baa80/attachment.htm>
More information about the midPoint
mailing list