Some time we need to validate the user profile attribute(default field or UDF) as per the requirement so we write custom validation handler. Sometimes you may want to take certain automated actions when new users are created or when existing roles are modified. Another example is that lets say you have changed the password policy in Oracle IDM and immediately thereafter you want notifications triggered to users whose existing passwords do not qualify for new policy implemented.
Validation handler in OIM helps us to validate the user profile field changes at run time.
But when we develop validation handler most of us get one issue that validation handler is not triggered. We do every steps according to the oracle document but then also we get this issue. Have you been in this situation as well ? This article explains how to fix the most common cause of your custom event handlers not being executed.
Some time this issue arises due to the order when we use order less than 1000. However most of the time this is related with the plugin point we use in plugin.xml.
As per oracle document says use 'oracle.iam.platform.kernel.spi.ValidationHandler' as the plugin point but this will not help you in fixing the issue. Rather using oracle.iam.platform.kernel.spi.ValidationHandler as pluginpoint use 'oracle.iam.platform.kernel.spi.EventHandler' as plugin point in plugin.xml.
Once you changed th plugin point delete metadata and Export it back . Do the change in the field you are validating as per the logic and you will see that you validation handler is working now.
Comments
I am still getting the error :
Error returned is: Event handler TelephoneNumber ValidationEH implemented using class/plug-in sfr.TelephoneNumber ValidationEH could not be loaded.
while updating telephone number using user form.
Please find below the plugin.xml and eventhanndler.xm
plugin.xml
Event Handler.xml
Please suggest for the same.
Plugin.xml
Plugin.xml
RSS feed for comments to this post