/** * Executes the process and returns the outputs. * * @return process outputs, never <code>null</code> * @throws IOException if a communication/network problem occured * @throws OWSException if the server replied with an exception * @throws XMLStreamException */ public ExecutionOutputs execute() throws OWSExceptionReport, IOException, XMLStreamException { lastResponse = sendExecute(false); OWSExceptionReport report = lastResponse.getStatus().getExceptionReport(); if (report != null) { throw report; } return lastResponse.getOutputs(); }
/** * Returns the outputs of the process execution. * * @return the outputs of the process execution, or <code>null</code> if the current state is not * {@link ExecutionState#SUCCEEDED} * @throws OWSExceptionReport if the server replied with an exception */ public ExecutionOutputs getOutputs() throws OWSExceptionReport { if (lastResponse == null) { return null; } OWSExceptionReport report = lastResponse.getStatus().getExceptionReport(); if (report != null) { throw report; } return lastResponse.getOutputs(); }