The below code snippet will give u the details of the Parent and Child request details of a given request id.
*/
*/
}
Output
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
No comments:
Post a Comment