[midPoint] Scripted Hook v4.0 createModificationAdd missing
Pavol Mederly
mederly at evolveum.com
Thu Oct 17 10:59:30 CEST 2019
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 developer
evolveum.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 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/20191017/5a1640c3/attachment.htm>
More information about the midPoint
mailing list