From 1bbaf99938a65367247089adabb8b5c62382ae16 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 30 Nov 2014 11:58:24 +0100 Subject: [PATCH] BusinessProcess: allow to add root node --- library/Bpapp/BusinessProcess.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/Bpapp/BusinessProcess.php b/library/Bpapp/BusinessProcess.php index ed41d4c..1ce868e 100644 --- a/library/Bpapp/BusinessProcess.php +++ b/library/Bpapp/BusinessProcess.php @@ -70,6 +70,12 @@ class BusinessProcess return $this; } + public function addRootNode($name) + { + $this->root_nodes[$name] = $this->getNode($name); + return $this; + } + public function retrieveStatesFromBackend($backend) { $this->backend = $backend;