This content has been marked as final. Show 8 replies
I have seen this issue with on Pre Update. Never heard on Post Update.
I'll suggest go for Event Handler instead of Entity Adapter as in Entity Adapter you'll not get OLD VALUE of attribute. And put condition on OLD and NEW Value for more specific results.
Put if (NEW VALUE == "Default Value" and OLD VALUE != "Default Value") then UPDATE else nothing.
Thank you for your collaboration. I am trying to verify if I go in a loop adding some logs as Bikash suggested.
I would prefer the Event Handler way as Dewan suggested, since it would give you more control. The problem is that I dont know the plugin point, and the entity-type used for event handlers to post-process modifies done on the resources.
I am using 11g version and all the guides I found are about extending user management with event handlers, and I haven't found one to guide me on extending resource management with event handlers. I first tried to use the event handlers giving "oracle.iam.platform.kernel.spi.EventHandler" as the plugin point and entity-type="ANY" operation="ANY", but the event handler never got trigered (the event handler code was simple, it writes a line to just to show the event is triggered). The event handler did get triggered when I created/modified a user, but never got triggered when I created/modified an account for a user. That's the reason I want for entity adapters then.
But however I would gladly return to see the possibility of event handlers. Could you Dewan please provide me the plugin point and the entity-type, to achieve this if you have tried it before? I would also like to know how to access old-value with event handlers.
Thank you in advance for your help
I had the idea that triggers would be triggered if a change is done on USR or ACT table. I my case the changes happens only on the account provisioned, so I using Lookup.USR_PROCESS_TRIGGERS will not help me. However I managed to break the loop of the post-entity adapter using the condition:
if <field-value> != "defalult value"
set field value = "default value"
Thank you for your continous collaboration guys. I have achieved a lot using your help on this forum.