How to get OIM workflow waiting for a task successfully completed?

The requirement is to get OIM provisiong workflow pending and wait for a external status ready. When the external status not ready, I return "REJECTED" which mapped to "P" in "Task->Reponse" tab. Meanwhile, in the "Task->General" tab, I set the "Retry Count" to 5 and "Retry Period in Minutes" to 1.
I have hoped that once the task return "REJECTED", the workflow enter status "Pending". One minute later, the task re-instanced by OIM to have another check for whether the external status ready. If ready, return "COMPLETED". If not yet, return "REJECTED" and workflow re-enter pending. And on and on, until to max to 5 times attempt. But in fact, OIM workflow never attempt to re-enter the task again after the 1st time "REJECTED" returned.
How to do with this?

Use the code snippet below to get the task status. Based on this you can filter rejected tasks.
userintf = (tcUserOperationsIntf) ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
provintf = (tcProvisioningOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcProvisioningOperationsIntf");
long userKey=100;
tcResultSet userresultSet = userintf.getObjects(userKey);
for(int i=0;i<userresultSet.getRowCount();i++)
     userresultSet.goToRow(i);
     long processKey = userresultSet.getLongValue("Process Instance.Key");
     tcResultSet provresultSet = provintf.getProcessDetail(processKey);
     for(int j=0; i<provresultSet.getRowCount();j++)
          provresultSet.goToRow(j);
          String taskName = provresultSet.getStringValue("Process Definition.Tasks.Task Name");
          String taskStatus = provresultSet.getStringValue("Process Instance.Task Details.Status");
Let me know if you have any queries...

Similar Messages

  • How to get rid of "Waiting for Activation" on old iphone 3G?

    Ok I just upgraded to the new 4 & planned on giving my old 3G to my son to play games, music, photos etc.
    I'm in the process of re-syncing it with everything for him
    But there seems to be a message on the screen "Waiting for Activation, this may take some time"
    How do I get that to go away as I will NOT be activating this phone again, but it will basically be used like an ipod touch?
    Thanks.

    Turn Airplane mode on followed by turning on wi-fi access.
    The no longer activated SIM card will need to be inserted in the iPhone to restore the iPhone with iTunes if wanted or needed and to install a firmware update or to complete the process - the SIM card that was used with the iPhone when it was activated.

  • CL_DPR_TASK  how to get earliest fiish date for a task of cProject

    i found this method CL_DPR_TASK GET_SCHEDULE_ATTRIBUTES to retrieve earliest finish date.
    but i don't know how to assign the parameter IR_SCHEDULE_OBJECT to this method.
    could you help me with this?
    if i don't use this class, is there any other way to fetch the earliest finish date for a task of project?
    Edited by: Duan ZZ on Aug 26, 2010 5:09 PM

    BAPI_BUS2175_GET_DETAIL

  • How to get the purchase value for a purticular price.

    Hi guru's,
    I want to get the purchase value for some materials, in a particular plant and in a particular month. How can I get this data.
    waiting for replies
    thanks
    tuljasingh.

    Hi,
    Refer report ME1P - PO Price History.
    Else Use Reports;
    ME2N - PO List by Document No
    ME2M - PO List by Materials
    ME2L - PO List by Vendors
    ME80FN - General Analysis of Purchase Orders

  • Workflow - Wait for PO release

    Hi ALL,
    My requirement is that, after the PO change by ME22N the WF should Wait for PO release before I can call MIGO for Goods receipt.
    But my WF is directly calling MIGO after the ME22N, even though I have put a Wait for event task in between.
    Object type - BUS2012
    The WAIT event is - RELEASED
    the bibding parameters are &_EVT_OBJECT& from Event to &PURCHASEORDER& in the workflow.
    The wait condition is executing successfully and then MIGO is called, where as I have not yet Released the PO.
    How to make the WF wait for the Release.
    DP

    Hi,
    As per my understanding, is your workflow goes for next step after release of any level ?
    Please check whether the event RELEASED triggers for each level of release.
    Regards,
    JMB

  • I tried to import 2 photos from an email. The photos are now on iPhoto, however, when I try to close iPhoto or turn off my computer, I get a notice that says, "Photos are being imported to the photo library. Please wait for the import to complete."

    I tried to import 2 photos from an email to iphoto. The photos now appear in iphoto as the latest imports, However, when I try to close iphoto or log off of my computer, I get a message box that says, " Photos are being imported to the photo library. Please wait for the import to complete."
    I can't get out of iphoto or log off of my computer, or turn the computer off. How do I stop the import or log out of iphoto???

    Try Force-quit from the Apple-menu to close iPhoto.

  • I have an Iphone 3gs. I can't get it to sync. Every time I try I get the response 'waiting for changes to be applied'. I've tried doing a reset but it still won't sync. Any ideas?

    I have an Iphone 3GS. I can't get it to sync. Every time I try I get the response 'waiting for changes to be applied'. I do not have voice memos. Any suggestions?

    This is a user forum, not a channel to address Adobe. As your fellow users and volunteers, we'll be happy to help you if we can.
    You can download the CS6 trial version just like anybody else.
    Once you download it, you can install it, input your serial number, register it and apply all necessary updates.
    An alternative, if you know how to access your Adobe account, under My Products you'll find your Photoshop CS6 registration, next to which you should find a link to download CS6 if you originally bought it as a download

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • How to get title templates library for CC?

    How to get title templates library for CC?  Do you have to download and install PP 6 to get them?

    Try here Library, title templates, template projects missing: Premiere Pro, After Effects, Encore

  • How to get balance sheet report for profit centers

    hi
    how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for this

    Hi,
    You can use T. code KE5Z for actual line items.
    More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
    The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
    In selection, you can give ledger name which is generally 8A for profit center ledger.
    Reg

  • I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?

    I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?
    anyonr know how I can get my money back????????

    Go to Settings>General>Reset>Erase all content and setting. Then re-setup the iPod with your account/media. To redownload iTunes purchases see:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How to get 64 bit version for premiere elements 12

    How to get  64-bit version for Premier Elements 12 ? 
    I download from ADMISY site.
    Click on win 64 bit and download it.
    When I try to install ther is a error  this download version is not for 64 bit I have try many times but same result

    Hello
    I have been away some days
    ADMISY is a software partners for Adobe
    I running Win 7 Home Edition
    I have received a card with a code when I bought the program and the I
    download from ADMISY
    Sending serial and installation warning
    PhotoshopElements_12_WWEFDJ.7z
    PhotoshopElements_12_WWEFDJ
    PremiereElements_12_WWEFDJ_win32.7z
    PremiereElements_12_WWEFDJ_win32
    I can not find a 64 bit version of 32-bit or 64-bit version of downloads
    This is information I have
    Best regards
    Erling Magnusson
    2015-02-04 22:33 GMT+01:00 Adobe Forums <[email protected]>:
        How to get 64 bit version for premiere elements 12  created by A.T.
    Romano <https://forums.adobe.com/people/A.T.+Romano> in *Premiere
    Elements* - View the full discussion
    <https://forums.adobe.com/message/7162950#7162950>

  • How to get the depreciation areas for an asset in particular period

    Hi frndz,
      how to get the depreciation areas for an asset in a particular period for writeup or manual depreciation method.
    Thanks and regards.
    Harisumanth.Ch

    Try table ANLB, then read ANLC.
    Regards.

  • How to get the version no. for service po?

    Hi,
    How to get the version no. for service po?For material po we are getting the version from EKKO-REVNO but for service po Ekko-revno is blank.
    Regards,
    Rachel.

    Hiee,
    It is not like service PO does not have revision.
    REVNO will only exists for any document if amendment is made after releasing it. If in EKKO for all service PO revision number is blank then test if version management is active for document type
    MM->Purchasing->Version management -> External documents
    Here check for your doc type and purchase org version management is active.
    Regs,
    Appie

  • How to find the workflow admins for all costcenters ?

    Dear SRM gurus
    We are using Classic scenario with N th step workflow with BADI.
    we have a requirement.
    How to find the workflow admins for the particular costcenters.
    we used HRV1222A where ATTRIB EQ <Z attribute>(This is our own attribute to group all the costcenters)
    used table HRP1001 to find the Admins but results are not correct because it is not showing my user id(I have all authorisations).
    Is there anyway to find all the admins for a cost center(users are more than 7000+)
    can anybody send work flow related presentations or cookbook
    Thanks in Advance.
    srinu

    hi
    I have not received any thing.Please send again
    [email protected]
    [email protected]

Maybe you are looking for

  • PDF in emails won't open webos 1.3.1

    I get an error message "Cannot find an application which can open this file" when I try to open a PDF that I received in an email. Is there a fix for this? I tried a partial erase with no success. Is anyone else experiencing this error? Post relates

  • XML encoding UTF-8 and accents

    hello everybody ! a little problem with my xml file, =========== <?xml version="1.0" encoding="UTF-8"?> <videoData> <video1        thumbtitle = "Soirs de fêtes - défilé de mode"             buffTime = "2"        header = "my description"        >flv/

  • Material aging reports

    Dear All, Needs to knw the transaction codes for material aging standard reports. Thanks

  • CSS Cell Question

    Can anyone help me understand where i am going wrong. I am trying to create cell table buttons with CSS Example here: http://76.12.37.122/test 2 problems. 1) I cannot get the cell border to also follow the horizontal between the buttons. If i apply t

  • Excel Add-in Error.

    Hi Guys, I have got the below error when I retrieve the data in Excel add-in: ESSBASE ERROR: Essbase has encountered an internal excel error. Your sheet will not be over written and none of your data will be lost. However, you are strongly urged to e