src/Jaspersoft/Service/ReportExecutionService.php
public function cancelReportExecution($executionId)
    {
        $url = $this->makeUrl($executionId, true);

        try {
            $response = $this->service->prepAndSend($url, array(200), 'PUT', json_encode(array("value" => "cancelled")), true);
        } catch (RESTRequestException $e) {
            if ($e->statusCode == 204) {
                return false;
            } else {
                throw $e;
            }
        }
        return Status::createFromJSON(json_decode($response));
    }
public function cancelReportExecution($executionId)
    {
        $url = $this->makeUrl($executionId, true);

        try {
            $response = $this->service->prepAndSend($url, array(200), 'PUT', json_encode(array("value" => "cancelled")), true);
        } catch (RESTRequestException $e) {
            if ($e->statusCode == 204) {
                return false;
            } else {
                throw $e;
            }
        }
        return Status::createFromJSON(json_decode($response));
    }
public function cancelReportExecution ( $ executionId ) { $ url = $ this -> makeUrl ( $ executionId , true ) ; try { $ response = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , 'PUT' , json_encode ( array ( "value" => "cancelled" ) ) , true ) ; } catch ( RESTRequestException $ e ) { if ( $ e -> statusCode == 204 ) { return false ; } else { throw $ e ; } } return Status :: createFromJSON ( json_decode ( $ response ) ) ; }
If a report execution is already running, you can cancel the execution using this method.

A boolean value of false will be returned in the event that the requested report has either already completed
or was unable to be found.

@param string $executionId
@return Status|bool
@throws \Jaspersoft\Exception\RESTRequestException
@throws \Jaspersoft\Exception\ReportExecutionException
If a report execution is already running you can cancel the execution using this method .