[midPoint] Changes set to secodaryDelta doesn't applyes

Pavol Mederly mederly at evolveum.com
Tue May 26 10:00:23 CEST 2015


Hello,

this is from a model hook? I never used that hooks, but my intuition 
says that beware of changing objects in the model context (the first 
line); create a clone before that.
If that does not help, enable logging for model (either the whole model, 
or projector + change executor only) and see what happens. If you would 
need help with that, post the log here.

Or maybe someone else would have a better idea :)

Regards,
Pavol

On 26. 5. 2015 9:48, Алексей Ващенков wrote:
> Hello.
>
> I need to remove all roles after user fired.
> I wrote the code
>
> focus.assignment.removeAll(rolesToDelete);
> current = modelController.getObject(UserType.class, focus.oid, null, task, result);
> delta = current.diff(focus.asPrismObject(), true, true);
> context.engineScope.get("modelContext").focusContext.addSecondaryDelta(delta)
>
> The delta evaluated properly, but it doesn't applies to user.
> Where am I wrong?
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint




More information about the midPoint mailing list