Hi All,
One more Scenario which I implemented recently :
If any fields are updated in OIM(oracle Identity Manager) a mail should go to administrator group with the old value and new value of that fields. It was dynamic , you can add any field in future if you want and you can delete any field too.
Email were sent only to specific users with special roles ( A lookup was created in OIM and if any user has any one or more roles from those 7 roles and any extra roles which is not in that list) a mail will go to that user who is considered as a Special user.(Privileged user).
One more lookup was created in OIM for attributes which should go in email ( Any attributes which are present in this lookup are updated from OIM) .Old and new values of those attributes will go in the mail. It was dynamic you can add any attribute in this lookup and it will go in the mail.
One more thing which I took care of is Whenever a new user is created a mail should not go as old value will be blank.
Please let me know if you are implementing any similar scenario and need help.Post the comment with your email address and I will get back to you.