Reject Pending Approval Tasks when Manager changes

Folks,
I have a requirement , when the user's manager change , i need to reject all the pending approval tasks for that particular user whose manager has changed , not others pending tasks .
Please let me know if anyone has implemented such a requirement .
I'm thinking of writing the logic in Change Manager task in xellearte user prov process , so when manager will change this task will trigger and in this task i will get all the pending approvals by using the 'getPendingApprovalTasksAssignedToUser' but i'm not sure how to identify the user who was the beneficiary of the task .
Thnx
Sid

We are using 11.1.1.5 with BP03.
Question - An OIM user can raise requests which can be routed to its manager for approval. The manager may manage more than one subordinate and will have approval tasks for requests raised by all his subordinates. If one of the subordinate's manager changes, tasks assigned to old manager for that subordinate should be rejected. All other tasks assigned to this manager by other subordniates should still be active. Can we fetch tasks assigned to a manager for a particular subordinate?
APIs do give me all the tasks assigned to a user but can we filter them to fetch tasks related to only one beneficiary without fetching all and then iterating through all to get desired result?

Similar Messages

  • OIM pending approval task under user

    I have question regarding OIM
    we have 2 level approval workflow for provisioning responsibility to user. 1st level is Manager and 2nd is Business Owner. Say if the user submit request for a responsibility and it is approved by the user's manager. Its then submitted to Business owner. But say that business owner gets changed.
    this what is happening
    all the request for previous business owner are copied to new business owner, then he can approve/reject them. But the pending task under old business owner is still there. he/she can still approve or reject. Client want to remove this pending approval from the old business owner.
    ** Please note -- Business owner is a group which has a user.

    Pending Tasks works in the following manner:
    - User : Any task assigned to a user remains to be visible under its pending tasks unless re-assigned to someone else by the user/admin.
    - Group : Any task which is assigned to a group would not directly come to the user work flow. Whenever you login to OIM, the system checks all your groups and then do a smart calculation for these assigned tasks. So if the user is removed from a group then it would not see these tasks anymore.
    Now for your case, the Group=Business Owner itself is changed. So for new requests the assignment would be to done to the new group but existing tasks remains in the work-flow of the older group, if still required them you might want to re-assign it using OIM API's.
    Thanks
    Sunny

  • N- Step PO Approval only when Value Change

    Hi ,
       I am in SRM 5.5, I have a requirement that PO N-step workflow should only trigger when the PO value changed not any other changes, is it possible ? Please give me some details about this if possible
    John.

    Hello John,
    You also could use in the start conditions (SWB_COND):
    EC Purchase Order.Total Value Incrsd   - here you could check, if the value increased
    EC Purchase Order.Total Value Diff.    - here you check, if there is a difference to the original amount
    Both of the above starting conditions you could use in the event of 'CREATED' (new PO) or 'CHANGED' (amended PO).
    Give it a try.
    Franz
    Edited by: Franz Feichtenschlager on Sep 1, 2009 8:36 AM

  • How to get the group key, which an approval task assign to

    Hi,
    When a user is assign to OIM Group (i.e. from User Detail >> Group Membership form), I will call an approval process (using Access Policy).
    In that approval process, I have defined two tasks.
    1) Assign Approval to Group -> NOT conditional
    2) Remove OIM Group From User -> conditional
    So, from the 1) task, I will assign this approval to a OIM Group.
    If the user click "Approva", a provisioning process will be fired.
    If the user click "Deny" (Reject), 2) task will be run.
    What I want is this.
    From this 2) task, I need to get the "OIM Approval group" key or name (which this approval is assigned to)......
    Note: I need to get this group info in the "Approval Process Task" -> "Integration" -> "Map"
    Regards,
    Chaturanga

    Hi,
    Yes. I have done that.
    Now what I want is this. If the approver "Deny" (Reject) the approval task, I will call another task in the approval process. From that task, I need to run a code, which remove the user from OIM Group.
    So, to do it, I have written a java code and created a adapter. So, as a input parameter for that code, I need to give the approval group name(i.e. the OIM group, above approval task is assign to).
    How can I get the OIM approval group, which the person who Deny the approval belongs to, from this new approval process task???
    Regards,
    Chaturanga

  • OIM 11g: send direct link to approval tasks in email notification

    Hi all!
    What do I want to achieve: I want to send email notification to assignee in case if some approval task in OIM has assigned to them and this notification must have a direct link to the page of approval task details from which assignee can approve or reject an approval task.
    The default email notification that exists in approval task “DefaultRoleApproval” has a direct link to a request details page:
    <a href="<%substring-before(/task:task/task:payload/task:url , "/workflowservice/CallbackService")%">/oim/faces/pages/Self.jspx?OP_TYPE=LOOKUP&E_TYPE=MY_REQUEST&T_ID=<%/task:task/task:payload/task:RequestID%>>
    But unfortunately from this page we can’t do any action such as reject or approve.
    To find a direct link to an approval task details page (Self Service -> Tasks -> Task Details: Approval) from which I can perform needed operation I used document ID 748447.1. But I haven’t found a direct link.
    What is the direct link to task details page for approval with exact ID which I can include in an email to satisfy my requirement?
    Thanks in advance!</a>

    If at all you cannot get the direct link for approve/reject then try the actionable email from SOA. Once you have that configured the emails gets approver/reject links so that approvers can directly approve/reject the task from email. If that works for you then you can look at the format of those links in the email and deduce what you need the url as.
    HTH,
    BB

  • ECM EHP4 - status of IT759 not updated when manager approves

    Hi, we are implementating ECM on EHP4 and are having issues in the planning overview iview.  when a planning manager approves an org unit, the status of IT759 for the employees it not being updated from submitted to approved.  I have checked the user interface config and we have the tick box checked for allow approval process. 
    Also, once the org unit is in approved status, we cannot reapprove.  I have tried using PECM_ADJUST_0759 - Adjust Compensation Process Records , to reopen the approved org unit and reinitialise but this does not work.
    does anyone have any ideas?
    Thanks Tanya

    Hi Tanya,
    Use PECM_CHANGE_STATUS to reset the 0759 records from Approved or Submitted back to In Process.  Or the other way around.  Very useful transaction. 
    As to your first question, from your description you are having the planning manager Approve the proposed pay changes.  Normalthe planning manager will Submit and then a higher level manager will Approve or Reject.  We used a separate area for the Planning vs. the Approval/Reject step.  Only proposals in Submitted status are available for Approval/Rejection.
    We are removing that process this year as we had the same problem of always resetting.  So we just allow the adjustments to remain In Process throughout the review period.  Then use PECM_CHANGE_STATUS to move to Submitted, Approved and Activated. 
    Paul

  • Sales Order Approval needed when price is changed

    Gurus,
    Here is the Scenario:
    User creates a sales order. If he changes the price of an item or adds a discount, it is required that the Sales Order needs approval from the Manager. Please let me know how to proceed with this.
    P.S.I found a similar thread but it was not answered.
    Referal Thread
    Approval at the time of price difference

    Hi Manoj,
    This can be done by using status profile at the sales order header and with function module I_Change_Status, you can change the user status in background and the order would need approval from the manager before allowing to create any subsequent documents.
    So create user status in your status profile
    SPRO - SD - SALES - DEFINE AND ASSIGN STATUS PROFILE - SALES DOCUMENT HEADER
    10 - Order Created
    20 - Order Confirmed
    30 - Order changes pending approval
    40 - Order Rejected
    50 - Order changes approved
    Now your abapper can write a logic in program MV45AFZZ wherein, whenever something in the order is changed after the order has been confirmed (status 20), then the status would automatically be set to 30. ((This can be done changes made to pricing if order is still at status 10. You have to decide the best possible scenario, i am just giving you an overview))
    Now your sales manager can come and either make it 40 if he wants to reject it, or make it 50, if he is okay with the new rates or discounts if any.
    You can find what changes have been made in the order by going to Environment - Changes.
    This will give the manager a clear picture of which fields in the order have changed.
    I have used this concept and it works perfectly fine.
    Try and let me know.
    Reward points for contribution if helpful.
    Regards
    Ravi

  • OOTB approval worfklow not creating task when require checkout is set as Yes on the document library

    HI,
    I set the document library versioning to "require check-out" to yes.
    I set the workflow settings to create an approval workflow and "start the workflow when the item is created".
    I create a new document from the document template, save and check-in. The workflow task is not getting created, however the workflow is started.
    when i change the require check-out to "No" and create a new document as above, the workflow tasks are getting created.
    Can someone advise on what is the problem when versioning is enabled?? can anyone provide solution. thanks.

    Hi,
    According to your description, my understanding is that the task was not created after the approval workflow was running when setting the require check out to be yes.
    I tested the scenario in my environment, if I used the Office client application to create documents, then the task would not be created even when the workflow was running.
    There may be some reason that the creating task action is missed when the document is created using Office client application and the require check out is set to be yes.
    As a workaround, I recommend to install Office Web Apps and use Office Web Apps to create the documents when setting the require check out to be yes.
    The workflow will be starting before the documents is checked in, and it will create the task after the document is checked in.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • PO change rejection by approver

    Hi Gurus,
    We're currently in SRM 5.0 and I have 2 requirements:
    1. When approver rejects the PO changes by buyer, there should be a workitem going back to buyer and buyer should be able to see rejection reason.
    2. When buyer changes PO and sends approval, there should be another workitem to buyer where he can cancel the approval in case that he wants to cancel the changes.
    I tested and found out that the above are not part of standard process and flow (normal is when approver rejects, the workitem immediately completes with 'rejected' status). Is there a configuration to achieve this? Or there's really a need to change copy standard workflow template and modify it?
    Thanks.
    Ray

    Hi,
    You have to set up  Authorizational level of the user in transaction SUO1 'personalization' tab.
    BBP_WFL_SECURITY double click and set Authorization level for authorization
    HIGH       ' Workflow never restarted when changes are made '
    MEDIUM  ' Workflow restarted conditionllly when changes are made'
    LOW      '  Workflow always restarted when changes are made'
    NONE   ' changes to the object are not allowed '
    Hope it could be solve ur problem
    Thanks
    prasad.s

  • Rejecting a Pending document Versus Rejecting an Approved document

    I have Enterprise Wiki site collection which contains a document library.I have set the following settings for the document library:-
    Require content approval for submitted items? >>> Set to Yes
    Who should see draft items in this document library? >>> Only users who can approve items (and the author of the item)
    Now I find that SP will implement these two misleading scenarios:-
    If user with "Approve" permission reject an Approved version, then users with Read permission will get this message when they try to read the document:-
    Sorry, this site hasn't been shared with you.
    While If user with "Approve" permission reject Pending version , then users with Read permission will be able to see the latest approved version of the document.
    So I have these two questions:-
    Why SP is implementing these two different scenarios?
    Is there a way to force my document library to always display the latest approved version of the document , when rejecting Approved or Pending versions?
    Thanks

    Content approval is for approve/reject minor version. If you always need to show last major version then turn off content approval, then viewer (read only) user will see last major version.
    I will suggest you to use publishing infrastructure rather than content approval.
    refer - Enable publishing features
    please "Propose as answer" if it help you, also Vote This As Helpful if like this post.
    no i can define Content Approval for major version, here is the screen for version settings inside my document library:-
    if i turn content approval off, then there will not be Pending documents , and if a user edit a document , then the document status is always be Approved ... However i want to have Pending status, and if a user Reject a document (either Approved or Pending)
    then to force the document library to always display the latest approved version.... currently if the user reject an Approved version users will receive the following message when they try to read the document "Sorry, this site hasn't been shared with
    you." ,,

  • Is there a way to prevent the "task id" from changing automatically when a task is moved or inserted?

    When moving a task in Project 2010 I've found task IDs also change.  This is not the desired result.  If a task is moved for whatever reason the task ID should not change.  It should be consistent to the task.  For example, I've created
    a new project with five tasks as shown on the left below.
    I've numbered the tasks to coincide with the task ID as originally created.  If I move Task 4 to be after Task 1 the moved task and all subsequent tasks are renumbered as shown on the right below.
    This is not the desired result.  The expectation is the task ID is unique to the task when the task is created.  It should never change after the fact.  I view the task ID as the identity field for the task.  In database terms this means
    it NEVER EVER arbitrarily changes.
    A similar problem occurs if a task is inserted between two tasks.  If I insert task 6 after task 2 the task IDs are renumbered as shown.
    Again, the task ID should never have been arbitrarily changed.  This creates a referencing problem because task 6 should have had the next available higher task ID which should have been 6 and all the tasks after task 6 would not have been renumbered.
    The only work around to this behavior is to create a custom number field called "Task ID" and manually assign numbers to each task.  This makes referencing the tasks easy when communicating with team members.  Using the built-in task
    id as a reference risks the task ID being lost at any point and confusion for team members.
    Is there a way to turn-off task ID renumbering when a task is moved or inserted?
     Ideally any inserted task should be the next higher available task ID.
    Thanks

    Hi,
    not sure where to find original post. In RDB, it is MSP_EpmTask_UserView.TaskClientUniqueId.
    Sorry, if there are now 2 answers.
    Regards
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

  • 'No Details' error when tying to appen approval task from oim page -11GR2

    Hi all,
    I am using RequestService service of oim API for triggering Remove Role request. Request is being triggered succesfuly, and approval task is being assigned to the right person. But when I try to open the task I get 'No Details Available For the Task' message in apopup. I tried to open it from the worklist application but there is the same error. What may be wrong? Any Help is strongly appreciated...
    Code snipped I use is below:
    OIMApiHelper helper = new OIMApiHelper();
    User user = helper.findUserByReconKey(userReconKey);
    String userKey =user.getEntityId();
    RoleManager roleManager = Platform.getService(RoleManager.class);
    RequestData requestData = new RequestData();
    RequestService reqsrvc = Platform.getService(RequestService.class);
    requestData.setJustification(" Remove Roles");
    ArrayList<RequestBeneficiaryEntity> entities = new ArrayList<RequestBeneficiaryEntity>();
    List<Role> userRoles = roleManager.getUserMemberships(userKey,true);
    for(int i=0; userRoles!=null && i<userRoles.size();i++){
    Role role = userRoles.get(i);
    String roleKey = role.getEntityId();
    String roleName = role.getName();
    if(roleName.endsWith("ALL USERS")){
    continue;
    log.info("Benificiary Key (Role ID) ->"+roleKey);
    log.info("Benificiary Name (Role Name) ->"+roleName);
    RequestBeneficiaryEntity ent1 = new RequestBeneficiaryEntity();
    ent1.setRequestEntityType(oracle.iam.platform.utils.vo.OIMType.Role);
    ent1.setOperation(RequestConstants.MODEL_REMOVE_ROLES_OPERATION);
    ent1.setEntitySubType(roleName);
    ent1.setEntityKey(roleKey);
    entities.add(ent1);
    if(entities.size()==0){
    return;
    Beneficiary beneficiary = new Beneficiary();
    beneficiary.setBeneficiaryKey(userKey);
    beneficiary.setBeneficiaryType(Beneficiary.USER_BENEFICIARY);
    beneficiary.setTargetEntities(entities);
    List<Beneficiary> beneficiaries = new ArrayList<Beneficiary>();
    beneficiaries.add(beneficiary);
    requestData.setBeneficiaries(beneficiaries);
    //submit request
    String reqId = reqsrvc.submitRequest(requestData);
    BR,
    Aliye

    He is talking about the configuration which you did at the time of OIM Installation.
    Verify:
    Login into EM > System Mbean Browser > Application Defined Mbean > oracle.iam > oim_server1 > oim >Config > XML Config.Discovery > Discovery

  • Update manager in IdM automatically when the manager changes in SAP HR

    Hi Experts
    I have been given a requirement where the manager of a user in IdM should be updated automatically when the manager changes in SAP HR.
    The HR extraction job is currently in place and runs every 30mins.
    Please could you give me some ideas on how to implement this.
    IDM 7.2 SP 6
    Thanks
    Ran

    Hi Deepak
    I have been discussing this a bit more in detail with the client. So, the issue is as follows
    When a new/replacement manager is hired
    When people are moved from one org unit to another
    The scheduled extraction job (RPLDAP_EXTRACT_IDM with a variant with the delta tick on) does not update the new manager info in IDM for the relevant users who report to that manager. The client has to run the program (RPLDAP_EXTRACT_IDM with a variant with the delta tick off) manually each time for the affected users which updates the manager info successfully in idm.
    I investigated the query LDAP_IDM_QUERY from user group /SAPQUERY/L1 and want to know if the below should be ticked as well. Your thoughts please?
    Please advise.
    Thanks
    Ranjit

  • PO Workflow: PO needs to approved automatically when need-by-date changed

    Hello All,
    Please help me in suggesting ideas on below requirement.
    Requirement: PO needs to be approved automatically when ever Need-By-Date/Promised-Date changed by buyer.
    Currently it is going and checking for the buyer approval limit and keeping the PO in 'Requires_Re_approval' status.
    Please suggest me on this.
    Thanks/ReddyS

    Hello Team,
    Please give us some suggestions/ideas on how to proceed furthur.
    Thanks/

  • I changed my Adobe user ID when we changed from Windows PC to Mac and now I am unable to read previously downloaded ebooks on my Sony Reader device due to Digital Rights Management.  Can I resolve this?

    I changed my Adobe user ID when we changed from Windows PC to Mac and now I am unable to read previously downloaded ebooks on my Sony Reader device due to Digital Rights Management.  Any ideas how I can get access to these now?

    Hi Blotontheland,
    Thanks for the prompt reply. The interesting thing is that my Macbook Pro was upgraded today to Yosemite and I still have the spinning wheel on the start up screen before the login page comes up.

Maybe you are looking for

  • Software necessary to communicate with Ipod not properly installed

    Hi, I updated my Itunes software and have been having problems ever since. Every time I connect my Ipod I get the message: "Software necessary to communicate with Ipod not properly installed. Reinstall Itunes..." After I click Ok it goes to Itunes bu

  • Screen turns alot of colors and sound contiues

    I will be watching a video or coming back on after sleep and the screen will turn a bunch of colors. Some times the sound continues as normal, but other times a loud screeching noise starts. It has been happening for a couple of months. Its not very

  • Client connecting through a proxy

    hi i'm new to RMI programming, i need to clear some things up . is RMI a standalone protocol like http or does it require another protocol so it can run over it ? . how does an RMI connection get through a proxy server, ie. if the client is behind a

  • Moving div tags?

    Sorry for all the questions but if I finally understand then I will stop asking. Here is the html code for my site so far: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd"> <head> <meta http-equiv

  • AU filters, and some suggestions for use

    I have just discovered the powerfull AU filters for the tracks, and would like some overall suggestions on their use. I have read on many forums and posts on what each one is, but my question is more on the line of when is enough enough, and can you