code: public function process()
      {
          $this->validate();
  
          try {
              $serviceContext = $this->getServiceContext();
  
              $this->saveToolStates();
  
              if ($this->getRequestParameter('offline') === true) {
                  $this->setOffline();
              }
  
              $result = $this->getRunnerService()->pause($serviceContext);
  
              $response = [
                  'success' => $result
              ];
          } catch (Exception $e) {
              $response = $this->getErrorResponse($e);
          }
  
          return $response;
      }
docs: Process the pause action.
  
  @return array
  @throws common_Exception
  @throws common_exception_Error
  @throws common_exception_InconsistentData