Sequence of event tasks

Hi All,
I defined 2 different tasks on change and modify event of the attribute MXREF_MX_PRIVILEGE to change the group assignments in Active directory.
When I change the value of MXREF_MX_PRIVILEGE from  "<mskeyvalue_priv1>|<mskeyvalue_priv4>" to "<mskeyvalue_priv1>|<mskeyvalue_priv2>|<mskeyvalue_priv3>", sometimes priv1 is assigned in AD and sometimes not, because the adding event is finished before the delete event.
How do I know the deleting event for priv1 is finished before the modify event?
thanks,
Joachim

Hi Joachim,
I read your question again. I think there is a way to prevent one job to start before another has finished.
Did I get you right that you first handle the add event for
<mskeyvalue_priv1>|<mskeyvalue_priv4>
and then the modify event for
<mskeyvalue_priv1>|<mskeyvalue_priv2>|<mskeyvalue_priv3>
sometimes the delete handler finishes faster than the add handler?
If so, then I can perhaps answer the question. What you can do is to check in table mxp_provision whether an instance of the event handler is still running. Let's say the event handler is an ordered task group with id 100 and the mskey of the person is 200 then the statement to check whether something is currently being processed is:
select count(mskey) from mxp_provision where mskey=200 and parentid=100
If the result is 0 then nothing is in the queue.
Another question is how you make the other operations wait. Here I have 2 approaches, one is simple, one is complex:
1) you code the query above in a conditional task and if result is >0 then you wait some minutes and try again then. If it doesn't succeed after several retries then make the entire thing fail.
2) You make the event handler run into an approval task. This way the execution is stopped until the approval is approved. This is a kind of semaphore mechanism: If somebody else has the lock then I wait until the lock is released. The lock holder must run a query when done in order to determine which other tasks are waiting in an approval and approve the one which waits the longest. All this can be done with a little scripting. But I wouldn't like to implement this, it's a pretty tedious.
Cheers,
Kai
http://kaidentity.blogspot.com/

Similar Messages

  • How to realize the other three events triggered by a sequence of events occurs?

    How to realize the other three events triggered by a sequence of events that occurs between Labview, and the time interval between three events for the 50ms?
    1110340053

    Are you another student who feels the need to post their "student ID" number as a part of the message?  There is really no need to do that, it is meaningless to us.
    You should ask your instructor to answer your questions rather than allowing them to turn the whole class of students loose on the forums usually asking the same identical question.
    At least in your case, the question is different from most we've seen.  Unfortunately, you haven't asked a clear enough question for us to understand what you are talking about.
    What "events" are you talking about?  Post a VI that demonstrates the code that you have written so far.

  • Sequence of events and handlers in webdynpro

    Hi,
    I am confused with the sequence of events triggered in webdynpro.
    What is the sequence of the events like WDDOINIT of window, view, Inbound plug handlers etc. I am more looking into the details like for example
    I have a window that opens a view. The sequence of events I expected would be
    1) WDDOINIT of Window
    2) Handle inbound plug for window
    3) WDDOINIT of View
    4) Handle inbound plug for view
    Much to my amazement I found that the sequence is
    1) WDDOINIT of Window
    2) WDDOINIT of View
    3) Handle inbound plug for window
    The inbound plug of view is not called at all.
    So is there an exhaustive reference that explains these things. Most of the references I found explain only about WDBEFOREACTION, WDMODIFYVIEW etc. But not about WDDOINIT or WDDOEXIT.
    Any pointers in this regard will be great.
    Thanks,
    Anand

    A great way to learn WDA and build a simple WDA at the same time.
    Define a simple CONTEXT. with 2 attributes
         CONTROLLER_NAME string
         EVENT string.
    On a view declare a table that shows this table.
    IN EVERY STANDARD METHOD
    add an entry to the table so the table grows:
          context_node->bind_table NEW_ITEMS  ( the new row in this table
                                                 SET_INITIAL_ELEMENTS =  true
    Add a button that calls a dummy action
    Add a button that exits.
    Even navigate  to and from a view.
    you will learn the phase model in a flash.
    About 15 20 mins  work.
    worth it.  Thats how I learnt it.
    Cheers
    Phil.

  • Sequence of events execution in ABAP reports

    can anyone explain me the Sequence of events execution in ABAP reports

    Ámit Güjärgoüd wrote:
    > search-before-post  Event Must before any posting.Else  <delete-after-input event triggered by moderator> would be trigger and thread may be going to Dump as well without ST22 information(What haapend,How to correct error) available 
    >
    > Edited by: Ámit Güjärgoüd on Oct 7, 2008 7:42 AM
    this looks perfect ABAP event sequence example.

  • Sequence of events in shutdown

    Hi,
    What is the sequence of events that occur when the
    server is issued a SHUTDOWN command? like the destroy of ejb,servlet, jndi, etc,
    and the user shutdown class. Is the shutdown class is performed before the server
    shuts down? what
    i am trying to say is what kind of resource I still can use in shutdown class.
    Last week when i shutdown our production server,
    I saw javax.naming.NameNotFoundException thrown by jsp page,
    which called the ejb but obviously the ejb already unbounded.
    Shoud the server stopped to listen the request first and then
    do some other stuff?
    Thanks.

    I am using a 'On Submit After Page Submission -
    Before Computations and Validations' process to do
    all my validations in a generic way.Not sure what you mean, could you please elaborate?
    For the problem you told about in point 4.
    May be you can build a validation in a before
    computation process or build a computation in a after
    validation process.I guess, but writing a validation as a Process kind of defeats the purpose. Technically, everything can be written as a "process", validations and computations are nice because they keep the code clean, operate in the context of a specific page item.
    Anyway, I was not looking for a workaround, I was trying to understand why things are designed the way they are.
    Scott: Could you take a look at my questions when you get a chance? Thanks.
    Thanks

  • Sequence of events in accept processing

    The sequence of events in accept processing is
    http://tinypic.com/foj80w.jpg
    Questions
    1. When would a Before Computation branch be used? Real-world examples.
    2. Similarly, when would a On Submit Before Computation process be used?
    3. When would a Before Processing branch be used?
    4. Why do computations fire before validations? Dont computations deserve to act upon validated session state? Currently, if my validation fails, the computation gives an error, so I have to code some twisted condition to "anticipate" that the validation is going to fail and if so, dont run the computation. Kind of defeats the purpose of the validation.
    Thanks

    I am using a 'On Submit After Page Submission -
    Before Computations and Validations' process to do
    all my validations in a generic way.Not sure what you mean, could you please elaborate?
    For the problem you told about in point 4.
    May be you can build a validation in a before
    computation process or build a computation in a after
    validation process.I guess, but writing a validation as a Process kind of defeats the purpose. Technically, everything can be written as a "process", validations and computations are nice because they keep the code clean, operate in the context of a specific page item.
    Anyway, I was not looking for a workaround, I was trying to understand why things are designed the way they are.
    Scott: Could you take a look at my questions when you get a chance? Thanks.
    Thanks

  • Binding of a wait for event task

    Friends,
    I'm sorry because I wrote about terminating events, but I wanted to ask about <b>'wait for event task'</b>.
    I know that isn't obligatory to make binding of wait for event tasks.
    I've configured without binding, and it is working fine on developement system, but it can cause any problem if I don't make it ?
    Message was edited by:
            Glauco Kubrusly

    Hi Glauco,
    You should be fine as it will use the EVTObject reference to invoke the wait step.
    Regards
    Gareth

  • Outlook 2013: Cannot insert any attachments into calendar events & tasks

    Hi,
    I encountered a seemingly ridiculous problem: 
    I cannot insert any attachments into calendar events & tasks in
    Outlook 2013 on a Win 8.1 machine. Outlook simply ignores CTRL-V paste actions with files and also all drag&drop actions with files. Does anyone have a solution or similar problems?
    Outlook 2013 runs using an exchange server account (Outlook.com / Office 365) on the machine.
    Even if there is a logic behind this behavior, Outlook should at least inform the user why it rejects inserting the attachment.
    Inserting attachments into e-mails works fine.
    All 3rd party add-ins have been disabled, to avoid interference of an add-in.
    Christian

    Hi,
    This is an known issue, you can refer to the article that our MVP Diane Poremsky wrote:
    Attachments are hidden in Outlook.com tasks and appointments
    http://slipstick.com/outlook/olc-hotmail/attachments-hidden-outlookcom-tasks-contacts-appointments/
    My opinion is, since Outlook.com calendar doesn't support attachments, this may be expected when you are using an Outlook.com account.
    Feel free to let me know if I misunderstood anything.
    Regards,
    Melon Chen
    TechNet Community Support

  • Can we change the tab sequence in UWL task - ep 7 ?

    Hi all:
         We are running ess/mss in ep7. Currently the UWL task display the 4 tabs ( alerts, task, notification, traces ).
         Can we change the sequence from alerts-task-notification-traces to task-alerts-notification-traces ?
         Thanks a lot.

    Hi Jianhong,
    U have a option at right side corner,right click and u go in personalization.Please see the below blog for more details.
    Customizing Default actions of items in UWL
    Universal Worklist - when you only need a single tab
    Thanks
    Regards
    Santosh
    Reward if helpful !!!

  • Running a Task Sequence within a Task Sequence

    We are running an SCCM 2012 R2 setup for OSD, WSUS, App Deployment and Endpoint Protection.
    To simplify the management of drivers across several OSD task sequences, I'd like to have one "master" task sequence containing only Apply Device Drivers with model specific targeting that is referenced from the OSD task sequences.
    Why would I want this? With every new computer model that is being added to the environment (We are currently supporting 20 different computer models, and the list keeps growing), I have to update one task sequence with model specific targeting for a driver
    package, then copy all the changes to several other task sequences. To try to simplify the administration and reduce the chance of human error and ensure consistency across the board, this would probably be the best way to ensure this.

    Out-of-the-box you can't start one task sequence within another task sequence. A few workarounds:
    You can make your task sequence put your computer object in a new collection which has a new task sequence targeted, but that probably won't perform that well;
    You can target multiple task sequences to the same collection and try to use PowerShell to trigger a new task sequence. For example something like this (I have never tried to use this from a task sequence):
    http://powersheller.wordpress.com/2012/05/24/sccm-2012-execute-task-sequence-with-powershell/
    You can try to merge your current task sequences.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude
    Since what I'd like to do is to "pause" the current task sequence until the second task sequence has run and then resume the current task sequence (Just the apply drivers step) I don't think either would be great options. I guess the copy paste
    option is what is left for me.
    Thanks for replying and your suggestions

  • Event tasks in SYSTEM Privilege ?

    Hello Experts,
    SAP IDM 7.2 SP8.
    I have query on event task being defined on SYSTEM PRIVILEGE (PRIV:SYSTEM:<REPO_NAME>).
    I believe IDM should not trigger provisioning tasks(ex. HOOK TASK 4) due to removal or addition of SYSTEM privilege.
    Only removal/addition of ACCOUNT PRIVILEGE (PRIV:<REPO_NAME>:ONLY) should
    trigger of provisioning tasks which also remove/add of system privilege for the user as defined in provisioning framework.
    So, How Event tasks should be defined for system privileges ?
    I think it should be empty (NONE).
    Below screenshots shows the current configuration being done for system privileges in my client's IDM system.
    This results in trigger of HOOK TASK 4 when SYSTEM privilege is removed/added from the user which causes errors which I know happen because of defining event tasks on SYSTEM PRIVILEGES.
    Your help is appreciated.
    Thanks & Regards,
    Pradeep

    Hi Steffi,
    Thank you very much.
    I just  compared Task defined at Repo level and privilege level and could relate then.
    Add Task (Assignment at Repo level, screenshot 1) =  Add Task (Assignment at Privilege level, screenshot 3)
    Remove Task (Assignment at Repo level, screenshot 1) =  Remove Task (Deassignment at Privilege level, screenshot 3)
    Provisioning task (Privilege tasks at Repo level, screenshot 1) = Provisioning task (Privilege tasks at Privilege level, screenshot 2)
    Deprovisioning task (Privilege tasks at Repo level, screenshot 1) = Deprovisioning task (Privilege tasks at Privilege level, screenshot 2)
    So I need to set Add Task (Assignment at Privilege level, screenshot 3) and Remove Task (Deassignment at Privilege level, screenshot 3)  to NONE .
    In your case, this is the setting done and so provisioning does not trigger due to addition/removal SYSTEM privilege which is correct.
    I would do this change in Dev system and test it .
    I will update the thread with result.
    Event task defined at repo level.
    Screenshot 1:
    Task defined at privilege level (tab Tasks)
    Screenshot 2:
    Event task defined at privilege level.
    Screenshot 3:
    Thanks & Regards,
    Pradeep

  • Changing date (and sequence) of events by changing dates of photos no longer seems to work. Any idea what to do?

    I am scanning in old slides and negatives (from the 1960s and 70s), and I want to get the resulting "events" in sequence from when the photos were taken, rather than when they were scanned. So I have been changing the dates of the photos, and previously this resulted in the associated event moving to the proper sequence. This definitely worked a month or so ago, both with prints scanned in on a flat-bed scanner, and also with slides and negatives scanned with a Veho scanner. That was faulty, however, and so it has been replaced with a Plustek 7500i scanner, using SilverFast scanning software, and importing the resulting images into iPhoto. I have recently tried to change the dates of the resulting events, and it doesn't seem to work as it used to. There has been an update to iPhoto 9.1.3 since my earlier success.
    Take for example one event, CS73A. Hovering over the event in the "All events" display gives dates of 1 Apr 2011 to 2 Apr 2011; these are the dates the slides were scanned in. If I open the event and choose the Info tab, it gives the event date as 02/03/1973 (which is the approximate date that I changed it to). I had done a batch change on the event this time, so the date and time on the first slide is 2 March 1973 09:30:48. Each successive slide is 1 minute later, and the last is 2 March 1973 10:08:48 (38 slides). I asked for the dates in the files to be changed as well.
    I don't know what I'm doing that's different from before. The only things I can think of are (a) something has changed in the iPhoto update, or (b) the SilverFast software stores the scanning date in some part of the EXIF that iPhoto can read but not change. I don't have tools to examine the EXIF unfortunately.
    What to do?

    Chris, I have run into the same problem.
    Try this:
    Open an event with more than one photo in it.
    Adjust the date of one or more photos. The event date does not update.
    Delete any one photo. The event date now updates to match the above date change.
    Undo the delete photo. The event date stays matching.
    Change the date of any photo again. The event date updates now every time.
    If you close the event and reopen it, you have to start over with the delete one photo thing.
    I don't understand it but it works here.
    I also have had the problem of events not sorting themselves in order of the dates when VIEW, SORT, BY DATE is selected. This seems to affect only the events were photo date changes had been made. Using the delete thing seems to keep the events in order.
    Another funny thing: When I put photos into iMovie the times in iMovie show as 7 hours off the photo time.
    I think Apple owes us an update to iLife!

  • StackOverflow when executing Retry Failed Recon Events task for AD recon

    Hello,
    I'm encountering a strange problem and I'm not really sure how to solve it. What happens is that the "Retry Failed Reconciliation Events" starts, it never completes, its periodic schedule kicks in, it starts a second time, it still never completes, the periodic schedule kicks in, it starts a third time, etc. It does this until there is about 20 parallel instance of the task running and the OIM crashes with a stack overflow. Then, the logs are filled with about 50k of this kind of error :
    [2013-03-28T14:31:16.972-04:00] [oim_server1] [NOTIFICATION] [] [oracle.iam.reconciliation.utils] [tid: OIMQuartzScheduler_Worker-10] [userId: oiminternal] [ecid: 412f90a39805a348:-223a0fa4:13db22c985e:-8000-0000000000000004,1:21295] [APP: oim#11.1.2.0.0] Generic Information: select min(RECON_EVENTS.RE_KEY) from RECON_EVENTS, RECON_BATCHES where RECON_EVENTS.RB_KEY = RECON_BATCHES.RB_KEY and RECON_EVENTS.RE_CURR_RETRY_CNT > 0 and RECON_EVENTS.RE_CHANGE_TYPE != 'DELETE' and (RECON_EVENTS.RE_STATUS IN ('Creation Failed','Update Failed') or (RECON_EVENTS.RE_ENTITY_TYPE = 'Account' and RECON_EVENTS.RE_STATUS IN ('No User Match Found','No Org Match Found')) or (RECON_EVENTS.RE_ENTITY_TYPE = 'User' and RECON_EVENTS.RE_STATUS IN 'Data Validation Failed') or (RECON_EVENTS.RE_ENTITY_TYPE = 'Role' and RECON_EVENTS.RE_STATUS = 'Data Validation Failed' and RECON_EVENTS.RE_NOTE like 'Invalid Role Category%') or (RECON_EVENTS.RE_ENTITY_TYPE = 'RoleRole' and RECON_EVENTS.RE_STATUS IN ('No Role Parent Found','No Role Match Found')) or (recon_events.RE_ENTITY_TYPE = 'RoleUser' and recon_events.RE_STATUS IN ('No Role Member Found','No Role Match Found')) or (RECON_EVENTS.RE_ENTITY_TYPE = 'Organization' and RECON_EVENTS.RE_STATUS IN 'Data Validation Failed')) and re_key>146942
    [2013-03-28T14:31:17.027-04:00] [oim_server1] [NOTIFICATION] [] [oracle.iam.reconciliation.utils] [tid: OIMQuartzScheduler_Worker-10] [userId: oiminternal] [ecid: 412f90a39805a348:-223a0fa4:13db22c985e:-8000-0000000000000004,1:21295] [APP: oim#11.1.2.0.0] User 4 is granted access to operation PROCESS_EVENT
    [2013-03-28T14:31:17.030-04:00] [oim_server1] [ERROR] [] [oracle.iam.reconciliation.dao] [tid: OIMQuartzScheduler_Worker-10] [userId: oiminternal] [ecid: 412f90a39805a348:-223a0fa4:13db22c985e:-8000-0000000000000004,1:21295] [APP: oim#11.1.2.0.0] Calling stored procedure - XL_SP_RECONEVALUATEACCOUNT[[
    intUserKey_in = 4
    intEventKey_in = 146943
    strRequiredAttributesList_in = RA_ITRESOURCENAME70C9F928,RA_UNIQUEID575B37CA,RA_OIMORGNAME265C2A54
    strMappedTableName_in = UD_ADGRP
    strTargetTableName_in = RA_ADGROUPA80D3C22
    strEntityTableName_in = ACT
    strAccountMatchingRule_in = (UD_ADGRP.UD_ADGRP_SERVER=RA_ADGROUPA80D3C22.RA_ITRESOURCENAME70C9F928 and UD_ADGRP.UD_ADGRP_OBJECTGUID=RA_ADGROUPA80D3C22.RA_UNIQUEID575B37CA)
    strEntityMatchingRule_in = ((UPPER(ACT.act_name)=UPPER(RA_ADGROUPA80D3C22.RA_OIMORGNAME265C2A54)))
    strChildTargetTableName_in =
    strChildReqAttributesList_in =
    strStagingITResColName_in = RA_ITRESOURCENAME70C9F928
    [2013-03-28T14:31:17.094-04:00] [oim_server1] [NOTIFICATION] [] [oracle.iam.reconciliation.impl] [tid: OIMQuartzScheduler_Worker-10] [userId: oiminternal] [ecid: 412f90a39805a348:-223a0fa4:13db22c985e:-8000-0000000000000004,1:21295] [APP: oim#11.1.2.0.0] No action is performed for event 146,943 with status No Org Match Found
    Inspecting the event 146,943 in the event manager shows that it is about the reconciliation of an AD group and it has failed with "No Organization Match Found". However, the organization name mentioned in the "Reconciliation Data" section does show up in Lookup.ActiveDirectory.OrganizationalUnits. In fact, the group name also shows up in Lookup.ActiveDirectory.Groups. However, the OIM Organization Name mentioned in the Reconciliation Data points to an organizations that doesn't exist in OIM. I don't think that it is a problem since the Maintain Hierarchy parameter in my AD Recon task is set to "no".
    I've also taken a look at the tables mentioned in the logs. The UD_ADGRP table is completely empty, but RA_ADGROUPA80D3C22 is filled with all the groups contained in my AD.
    So I'm not really sure what what's happening. AD Group lookup recon seems to work but not AD Group recon because I don't have the necessary OIM organizations, even though Maintain Hierarchy is set to "no". Does that make sense? I yes, is there a way to bypass this requirement?
    Thanks,
    --jtellier                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hey Nayan,
    Now i am came to the issue is not with user login, when i am trying to revaluate i getting create new entity option when i click on that page got stucks there.
    the issue is with password, bcz when i am creating user without password its not working it got stuck there and when i gave password i am able to create user.
    same thing is happening when reconciliation also. Password Auto-generation is not working i think.
    so how can i resolve it?
    Regards
    user7609

  • Sequence of Events Fired and Triggers Fired in Forms.

    Hi,
    Please help me to know how the events and Triggers will be fired in Forms Developer 9i.
    Thanks in Advance.

    Please take a look into Forms-Builder Online Help, there you'll find some sequence diagrams describing the order of Triggers firing on certain actions.
    e.g. search for "Post and Commit Transactions"
    brds,
    Peter

  • How can I restore events/tasks from a system backup using prefs.fs and local.sqlite?

    I accidentally deleted a calendar holding all my thunderbird tasks. I was now able to restore the calendar from my backup. I restored the following files:
    * profile-folder/calendar-data/local.sqlite
    * profile-folder/prefs.js (here: I did a diff and added only the section of the deleted calendar)
    Still no events and tasks are available from the deleted calendar.
    The calendar is now available in the Calendar tab.

    To view TM backups from a different Mac, see item #17 of the of the Frequently Asked Questions *User Tip* at the top of the +Time Machine+ forum.
    To restore files from there to your current Mac, see item #16 of that same Tip.

Maybe you are looking for