/** * Gets the list of current executions for a delivery * * @throws \common_Exception * @throws \oat\oatbox\service\ServiceNotFoundException */ public function deliveryExecutions() { try { $delivery = $this->getCurrentDelivery(); $testCenter = $this->getCurrentTestCenter(); $requestOptions = $this->getRequestOptions(['sortby' => 'date', 'sortorder' => 'desc']); $this->returnJson(DeliveryHelper::getCurrentDeliveryExecutions($delivery, $testCenter, $requestOptions)); } catch (ServiceNotFoundException $e) { \common_Logger::w('No delivery service defined for proctoring'); $this->returnError('Proctoring interface not available'); } }