From e4b773e827bdcd73154289810938a4a5250448f6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 10 Jan 2017 15:54:03 +0100 Subject: [PATCH] BusinessProcess: add hasRootNode helper --- library/Businessprocess/BusinessProcess.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Businessprocess/BusinessProcess.php b/library/Businessprocess/BusinessProcess.php index 423500f..fd8d870 100644 --- a/library/Businessprocess/BusinessProcess.php +++ b/library/Businessprocess/BusinessProcess.php @@ -449,6 +449,11 @@ class BusinessProcess return array_key_exists($name, $this->nodes); } + public function hasRootNode($name) + { + return array_key_exists($name, $this->root_nodes); + } + public function createService($host, $service) { $node = new ServiceNode(