Showing posts with label OIM Request. Show all posts
Showing posts with label OIM Request. Show all posts

Monday, 29 May 2017

Get Parrent and Child request details of OIM

The below code snippet will give u the details of the Parent and Child request details of a given request id.



public void getRequestDetails(String reqId) throws Exception{

OIMClient oimClientObj = getRequesterConnection("xelsysadm");
RequestService reqAPI = (RequestService)oimClientObj.getService(RequestService.class);

/**
* Get parent request details
*/

Request req = reqAPI.getBasicRequestData("34002");
Request pReq = req.getParentRequest();
System.out.println("Parent Request: "+pReq.getRequestID());

/**
* get the child request details
*/
pReq = reqAPI.getBasicRequestData(pReq.getRequestID());
List<Request> cReqs = pReq.getChildRequests();

System.out.println("Other Chlied request for entitlements");


for (int i=0; i<cReqs.size(); i++){

System.out.println(cReqs.get(i).getRequestID()+" : "+cReqs.get(i).getRequestModelName());

}

}

Output

Parrent Request: 34001
Other Chlied request for entitlements
34002 : Provision ApplicationInstance
34003 : Provision Entitlement
34004 : Assign Roles



Followers

OIM API for adding process task and retry failed task

 In this blog you can find how to add new process task and retry any failed/rejected tasks using API. Adding new process task: /************...