Service,HostNode: preserve process name in links

This commit is contained in:
Thomas Gelf 2014-12-02 11:37:32 +01:00
parent 6e1d546225
commit 8cb372d0a1
2 changed files with 8 additions and 4 deletions

View file

@ -18,11 +18,13 @@ class HostNode extends Node
{
if ($this->bp->isSimulationMode()) {
return $view->qlink($this->getHostname(), 'businessprocess/host/simulate', array(
'node' => $this->name
'node' => $this->name,
'processName' => $this->bp->getName()
));
} else {
return $view->qlink($this->getHostname(), 'monitoring/host/show', array(
'host' => $this->getHostname
'host' => $this->getHostname,
'processName' => $this->bp->getName()
));
}
}

View file

@ -20,12 +20,14 @@ class ServiceNode extends Node
{
if ($this->bp->isSimulationMode()) {
return $view->qlink($this->getAlias(), 'businessprocess/node/simulate', array(
'node' => $this->name
'node' => $this->name,
'processName' => $this->bp->getName()
));
} else {
return $view->qlink($this->getAlias(), 'monitoring/show/service', array(
'host' => $this->getHostname(),
'service' => $this->getServiceDescription()
'service' => $this->getServiceDescription(),
'processName' => $this->bp->getName()
));
}
}