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

Parameter

Type

Description

Example

jobId

java.lang.String

Job identifier

'14856eb1-0ad8-49e7-9da3-887acb80fea5'

outputClass

java.lang.Class<T>

The output class for the results

JobOutputJSON.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));

Did this page help you?