modzyClient.getJobClient().getResult

Retrieve the results execution

modzyClient.getResultClient()getResult(String jobId, Class<T> outputClass)

Returns the current results of a Job execution. It includes completed, failed, and total number of processed items

Parameters

ParameterTypeDescriptionExample
jobIdjava.lang.StringJob identifier'14856eb1-0ad8-49e7-9da3-887acb80fea5'
outputClassjava.lang.Class<T>The output class for the resultsJobOutputJSON.class

Returns

com.modzy.sdk.model.JobOutput with the job results

Examples

Most of the results are JSON based, so we have a utility method

JobOutput<JsonNode> result = modzyClient.getJobClient()getResult("14856eb1-0ad8-49e7-9da3-887acb80fea5");
System.out.println(String.format(" %s", result));

If you have the job object

JobOutput<JsonNode> result = modzyClient.getResult(job);
System.out.println(String.format(" %s", result));