diff --git a/library/Businessprocess/Node.php b/library/Businessprocess/Node.php index 36de014..6458db8 100644 --- a/library/Businessprocess/Node.php +++ b/library/Businessprocess/Node.php @@ -267,11 +267,25 @@ abstract class Node $state = strtolower($this->getStateName()); if ($this->isMissing()) $state = 'missing'; $handled = $this->isAcknowledged() || $this->isInDowntime(); + if ($this instanceof BpNode) { + $typeClass = 'process'; + } elseif ($this instanceof HostNode) { + $typeClass = 'host'; + } elseif ($this instanceof ServiceNode) { + $typeClass = 'service'; + } elseif ($this instanceof ImportedNode) { + $typeClass = 'subtree'; + } else { + // WTF? + var_dump($this); exit; + } + $html = sprintf( - '