Download Identity Manager User Application: Administration Guide

Transcript
//
// Test Results : maxProcesses <= 0 returns all processes
//
maxProcesses up to system limit returns maxProcess
count
//
maxProcesses > system limit returns system limit
int maxProcesses = 10;
ProcessArray processArray = stub.getProcessesArray(maxProcesses);
Process [] processes = processArray.getProcess();
if(processes != null)
{
LoggerUtils.sendToLogAndConsole("Process count returned: " +
processes.length);
Assert.assertEquals("Error: Processes returned shouldn't exceed
max count.",
maxProcesses, processes.length);
}
}
catch(AdminException error)
{
RationalTestScript.logError(error.getReason() );
throw new TestProgramException(error.getReason() );
}
catch(RemoteException error)
{
RationalTestScript.logError(error.getMessage() );
throw new TestProgramException(error.getMessage() );
}
}
getProcessesById
Used to get information about a specific process, specified by the Process Id.
Method Signature
com.novell.soa.af.impl.soap.ProcessArray getProcessesById(java.lang.String
id)
Example
Process [] allProcesses = stub.getAllProcesses().getProcess();
if(allProcesses != null)
{
String processId = allProcesses[0].getProcessId;
ProcessArray array = stub.getProcessesById(processId);
Process [] processes = array.getProcess();
}
terminate
Used to terminate a running provisioning request.
Method Signature
void terminate(java.lang.String requestId,
com.novell.soa.af.impl.soap.T_TerminationType state, java.lang.String comment)
Provisioning Web Service 443