getRequestParameter('execution'); $reason = $this->getRequestParameter('reason'); if (!is_array($deliveryExecution)) { $deliveryExecution = array($deliveryExecution); } try { $data = DeliveryHelper::reactivateExecution($deliveryExecution, $reason); $response = [ 'success' => !count($data['unprocessed']), 'data' => $data ]; if (!$response['success']) { $response['errorCode'] = self::ERROR_REACTIVATE_EXECUTIONS; $response['errorMsg'] = __('Some delivery executions have not been reactivated'); } $this->returnJson($response); } catch (ServiceNotFoundException $e) { \common_Logger::w('No delivery service defined for proctoring'); $this->returnError('Proctoring interface not available'); } } }