/**
  * (non-PHPDoc)
  * @see \Icinga\Web\Form::onSuccess() For the method documentation.
  */
 public function onSuccess()
 {
     foreach ($this->objects as $object) {
         /** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */
         $command = new ProcessCheckResultCommand();
         $command->setObject($object);
         $command->setStatus($this->getValue('status'));
         $command->setOutput($this->getValue('output'));
         if ($perfdata = $this->getValue('perfdata')) {
             $command->setPerformanceData($perfdata);
         }
         $this->getTransport($this->request)->send($command);
     }
     Notification::success($this->translatePlural('Processing check result..', 'Processing check results..', count($this->objects)));
     return true;
 }