When creating an onValidate hook for a relationship type of property (for example for the members property of the managed role object) in the admin UI, the new hook definition (and relevant script or inline code) is not saved, while there's no evidence of that.
More specifically, the behaviour is slightly different between OpenIDM 6.5.1 and 7.0:
- with IDM 6.5.1: after hitting the "save" button in the admin UI, nothing is actually saved in the managed role schema (managed.json file) but no error is shown in the UI.
- with a (one month old or so) IDM 7 build, it's slightly different: nothing is saved but a couple of (conflicting) popup windows are displayed: a green one to confirm the new configuration was saved, and a yellow one to say something went wrong (??..)
BTW, a use case for validating a relationship type of attribute is for example to manage conflicting roles (preventing a user from being assigned roles considered (by some business logic) as conflicting).