API Code to Close Request.

import java.util.Hashtable; 

import oracle.iam.request.api.RequestService; 
import oracle.iam.request.exception.AccessDeniedException; 
import oracle.iam.request.exception.RequestServiceException; 
import oracle.iam.request.vo.Request; 

public class CloseRequestAPI { 
    RequestService reqManager; 
    public CloseRequestAPI() { 
            super(); 
        } 
    public static void main(String[] arg) throws RequestServiceException, 
                                                 AccessDeniedException { 
             
            CloseRequestAPI oim=new CloseRequestAPI(); 
            oim.OIMConnection(); 
            oim.closeReq("20541"); 
                   
    } 
    public void OIMConnection(){             
    reqManager = Platform.getService(RequestService.class); 
     
    } 
     
    public void closeReq(String userId) throws RequestServiceException, 
                         AccessDeniedException { 
        reqManager.closeRequest(userId); 
    } 
}

1 comment:

  1. Hi,
    I have used above logic. It is closing the request, however Request is still visible in Pending approval section if Requestor is an end user. I am working on 11gR2PS3.
    Please assist how to remove it from Pending approval section.

    ReplyDelete

About OIM

Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...

Popular Posts