setAutorefreshInterval(10); $content = $this->content(); $this->controls()->add( $this->singleTab($this->translate('Node Impact')) ); $name = $this->params->get('name'); $this->addTitle($this->translate('Business Impact (%s)'), $name); $simulation = Simulation::fromSession($this->session()); foreach ($this->storage()->listProcessNames() as $configName) { $config = $this->storage()->loadProcess($configName); if (! $config->hasNode($name)) { continue; } MonitoringState::apply($config); $config->applySimulation($simulation); foreach ($config->getNode($name)->getPaths() as $path) { array_pop($path); $node = array_pop($path); $renderer = new TileRenderer($config, $config->getNode($node)); $renderer->setUrl( Url::fromPath( 'businessprocess/process/show', array('config' => $configName) ) )->setPath($path); $bc = Breadcrumb::create($renderer); $bc->getAttributes()->set('data-base-target', '_next'); $content->add($bc); } } if ($content->isEmpty()) { $content->add($this->translate('No impact detected. Is this node part of a business process?')); } } }