OIM11 event handlers: How to avoid firing the same code in both pre+post

Hi everyone,
I have a question around event handlers. My experiments so far have gleaned the following:
Manual updates of user form in admin interface -> Fires: pre-insert + Post-insert
Reconciliation trusted creates -> Fires: Post-insert
Reconciliation trusted updates -> Fires: pre-insert + Post-insert
Now I have various handlers that trigger to update fields coming in from trusted recon. Formatting telephone numbers, setting custom user attributes.. etc. I am using the same code in both the post and pre handlers as wherever the update comes from it needs to be processed in the same way. Problem is if a handler fires twice I can't be sure exactly how the system is going to behave (updating the same field again etc), never mind it is unneeded processing.
We have to keep the pre handlers because otherwise changes completed via the admin interface won't be seen until you refresh.
Can anyone please advice how to go about ensuring a handler is only fired once? i.e. if pre fires don't fire post. Have I missed something key here?
Edit: I know I've worded this badly. They will always fire as that's how OIM behaves, what I want is some way to work out in the underlying code if a field has already been modified in pre process... or something like it.
Thanks,
Wayne.
Edited by: wblacklock on 27-Feb-2012 05:38

I am sorry but I am not agree with your design.
However there is no chance to avoid this according to my knowledge. As both class has separate thread under different process, so there is no way to implement thread lock on entity operation.
Alternate way  to acheive your requirement:
You can have hidden UDFs. Update hidden UDFs in prepost handler with some data (hardcoded).
"You can have the value this hidden filed like :- "NAME_UPDATE|EMAIL_UPDATED|MANGER_UPDATE"
Now in Post - Process handler check the value of hidden UDF.
Get the value of hidden UDF, tokenize with String Tokenizer. Check which filed is not updated in Pre handler.
*If it is already updated - do not update.* else Update.
Thanks,
Kuldeep

Similar Messages

  • I have about 1000 contacts on my iPhone 4 after syncing with iCloud there are only about 120 contacts on iCloud How can I have the same info on both the iCloud and my iPhone

    Hi
    I have about 1000 contacts on my iPhone 4 after syncing with iCloud there are only about 120 contacts on iCloud How can I have the same info on both the iCloud and my iPhone

    On the iPhone tap Settings > iCloud
    Switch Contacts off then back on then reset the device.
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.

  • My Ipad and macbookair have been stolen. How can I find the imei code of both devices considering that were all registered on icloud?

    My Ipad and macbookair have been stolen. How can I find the imei code of both devices considering that were all registered on icloud?

    Unless you have configured iCloud on the MacBook Air and made sure that Find My Mac was turned on, you can't track that.  And even if you did do that, that is not a foolproof method of tracking, as it relies on the thief connecting to the internet using the guest account on the machine and not getting in to your account and disabling Find My Mac or wiping the hard drive and installing a clean system.
    As for the iPad, similar rules apply there.  If it is a wifi-only iPad, it cannot be tracked any other way.  If it has 3G, your wireless carrier may be able to help you track it.

  • How do I use the same Itunes for both my IPOD and IPAD?

    How do i use itunes for both my ipod and ipad? and have everything on both of them.

    You can connect one of them to your computer's iTunes, select it on the left-hand side of iTunes, and then on the right-hand side select the Music tab and choose what to sync to that device - you can then connect, select and sync the same content to your other device.

  • How do I set the same DNS for both Extreme and Express?

    I have an Airport Express that is configured to extend the network created and routed through my AirPort Extreme. However, when I connect to the network from the room where the Extreme is, I need to have the automatic DNS in place in order to connect. If, later, I want to connect to the same network from another room through the Express that is extending it, I must replace the automatic DNS with 4.2.2.4 or there is no internet connection. I was wondering if anybody could walk me through properly configuring the devices to avoid having to change DNS when I move elsewhere in the house that is not directly covered by the Extreme main base. I am only experiencing these issues with my iPads, by the way. hank you.

    No need to manually set DNS on any of the extending devices.....that is handled automatically during the setup.
    The real issue here is not DNS.....it is that iOS devices like the iPhone and iPad do not usually switch wireless access points automatically when there are multiple devices delivering a wireless signal.
    The iOS devices tend to connect to the first wireless router that they see.....and if you move the iOS device near another wireless access point that has a much better signal......the iOS device will stubbornly try to hold onto the original wireless access point.
    Not much that you can do about that.....nature of beast with iOS devices due to their much simpler operating systems and antenna.
    If you want to move the iPhone or iPad to another area, try turning off Wi-Fi on the device, then move it to the other area near another access point, wait a minute or two, and then turn WiFi back on.  That will usually force the iOS device to pick up the signal from the closer AirPort access point.
    By contrast, a Mac computer will automatically switch wireless access points as you "walk" it through the house to pick up the access point with the strongest signal. That is the way that iOS should work as well, but we'll have to wait to see if Apple ever delivers on this.
    Lately....maybe due to an update....my iPhone will sometimes switch to a closer access point after a few minutes.  My MacBook Pro switches quickly and automatically as soon as it moves closer to another wireless access point as I walk it down the hall.

  • IPad and IPhone synced to different PCs how do I get the same music on both devices? I used one PC to put CDs on ITunes but these don't appear on the phone which syncs to the Mac.

    I have 1 ITunes account but my IPad is synced to a Windows PC to download CDs onto my IPad and the Iphone is synced to the Mac. I was hoping that the CDs I'd put on the IPad from the Windows PC would automatically appear on my IPhone when both these devices were sharing the same Wi-Fi at home. This didn't really work very well and I've been left with the CDs showing on the list on my phone but when I try to play them, the different tracks keep scrolling fast and not playing. I've tried deleting them from the IPhone, but they just seem to retreat to ICloud.
    I've tried syncing the phone to the windows PC but this has just resulted in an error and I think this may be what has screwed the music up on my phone. I would just like to be able to listen to my CDs on my phone.
    Has anyone come across this before and resolved it?
    Thanks

    Terminology check here. Do you really mean a "CD"?  There's a difference in Cloud behavior between content from a physical CD you ripped (which only has Cloud content if you have iTunes Match) and an "album" you bought from the iTunes Store.
    Read references for Home Sharing.
    iTunes: How to share music and video - http://support.apple.com/kb/HT2688 - about Music Sharing and Home Sharing
    Home Sharing Support page - http://www.apple.com/support/homesharing/
    iOS: Setting up Home Sharing on your device - http://support.apple.com/kb/ht4557 - "With Home Sharing in iOS 4.3 or later, you can stream your entire iTunes library over your home Wi-Fi network from your Mac or PC right to your iPhone, iPad, or iPod touch."
    The above can get pretty complicated.  You are probably best off by syncing both devices to a single library and/or updating the libraries on both computers to have the same content.

  • How do I use the same Icloud address on my Ipad and Iphone ? I went to put my icloud address on my Iphone, but ttells me it is already being used and to create another one, which I dont want to do

    I have just bought an Iphone 4s to compliment my Ipad Air, I want to use my Icloud address on both machines but cant get my iphone to accept my icloud address, it tells me it is already in use and to create a new one, which is not what I want.. How do I get the same email on both devices?

    it tells me it is already in use
    You will need to contact the previous owner of the iPhone in order to change the Apple ID.

  • HT3228 Please let me know how to avoid receiving the spam into my email accounts on the iPad.  It is very annoying! My server puts it in the spam folder...why do I get it on the iPad?    Is it avoidable and how?

    Please let me know how to avoid receiving the spam (from the spam folder on the server) into my email accounts on the iPad.  It is very annoying!
    My server puts it in a spam folder and I do not receive it in the Ms Outlook on my desk computer...why do I get it on the iPad?    Is it avoidable and how?b

    You actually cannot do anything to your ipad when its locked but look at pictures the time and date, you need to restore it, and if it dosent let you restore, good luck chuck Heres how to restore it: Okay, i only know the itunes way soz, lol. Try to connect your ipad to itunes, if it does let you then you should be able to select the device you have in the corner somewhere, once you do that you should see a screen that looks sort of like your ipads setting, you should have a button that says "Restore" click that and your ipad should be restored. If that dosent work you should try going to your regular office depot or something. Good Luck!

  • Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • How can i use the same front panel graph in more than one events in an event structure?

    i want to display the signals from my sensorDAQ in a graph.but i have more than one event in the event structure to acquire the signal and display it in the graph.the first event is to acquire the threshold signals and its displayed in the graph as a feedback.after the first event is executed, i will call the second event,where the further signals are acuired and compared with the threshold signals from the event 1.my question is how can i use the same front panel control in more than two events in the event structure?please answer me i'm stuck.
    Solved!
    Go to Solution.

    Hi,
    I have attached here an example of doing the same using shift registers and local variables. Take a look. Shift register is always a better option than local variables.
    Regards,
    Nitzz
    (Give kudos to good answers, Mark it as a solution if your problem is Solved) 
    Attachments:
    Graph and shift registers.vi ‏12 KB
    graph and local variables.vi ‏12 KB

  • I've just imported photos that are misdated and appear out of order in my events. How can I correct the dates on these events so they appear properly?

    I've just imported photos that are misdated and appear out of order in my events. How can I correct the dates on these events so they appear properly?

    The one iin the Photos ➙ Adjust Date and Time menu option:
    checkbox below:

  • In the iMovie 11 event library, how can I get the iPhoto video clips to combine with my camcorder pics listed below and in chronological order?

    In the iMovie 11 event library, how can I get the iPhoto video clips to combine with my camcorder pics listed below and in chronological order?

    Try forcing iPhoto to load the Library on the External Hard drive by launching it while holding down the Option key. Choose the Library on the External HD, and quit iPhoto, see if iMovie can see the Library with the iPhoto Videos contained inside.

  • How to Avoid Printing the data twice when the sub report has drill down?

    Hello,
    I have a sub report that has drill down which is placed in report footer.When i run the report sub report displays the data but when i tried to drill down it displays the same data again.After that i can able to drill down on sub report.Is there any way to avoid
    printing the same data twice.
    Thanks in advance.

    Hi,
    If the subreport you're referring to does not grow in size and it does not span multiple pages and you know the size of it, here's what you can do to stop drilling into subreports :
    1) Create a text object as large as the subreport (perhaps bigger than it) and fill it with spaces or new lines
    2) Place it 'over' the subreport such that it covers the entire area occupied by the subreport
    3) The subreport at all times should be smaller than the text object in all dimensions
    Now, when you hover the mouse over the subreport, there isn't any magnifying glass for you to drill down into.
    If the subreport has further drill-down functionality, then this isn't for you! Because, it just wouldn't allow you click on any objects in the subreport because of the text object eclipsing it. This is the only workaround I know at this point in time and I know a lot of users are looking for this.
    I would suggest that you log this as an Enhancement Request at http://ideas.sap.com for our developers to have a look into this.
    And finally, I also found an old forum post where Jamie has suggested a way to get this working on the Business Objects Environment. Give it a shot, if that's where the reports are eventually run.
    How to disable subreport view
    Hope this helps!
    -Abhilash

  • How do I have the same "events" on two Macs?

    I have the "family pack" and just installed on both Macs. I have the same exact pictures on both Macs. I organized all the events on one Mac and now I would like to have the same events on the second Mac.
    On the previous version of iPhoto, I simply would copy com.apple.iPhoto.plist from the first Mac and copy it to the next Mac. Then all my preferences (e.g., file names, roll names, etc.) would match. This method does not seem to work on iPhoto 08.
    Any suggestions?

    John:
    You could use iPhoto Library Manager and copy the events from one library to another like this. The demo shows an event being copies but it works the same for albums.
    You'll need to connect the Macs so you have access to the libraries and then IPLM will do the job.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How can I have the same environment on two macs on is a macbook pro and the other a Mac mini

    How can I have the same environment on two macs on is a macbook pro and the other a Mac mini ?

    Forget trying to use iCloud for this - it won't do what you want.  iCloud syncs certain data like contacts and events, but it doesn't sync "environments" on computers.

Maybe you are looking for