From e0d7daaf9075cd1191fbb8400e2eadf4195e01d9 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 1 Dec 2014 19:32:09 +0100 Subject: [PATCH] BpNode: provide alias name --- library/Businessprocess/BpNode.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/Businessprocess/BpNode.php b/library/Businessprocess/BpNode.php index b4832d3..f03ae6b 100644 --- a/library/Businessprocess/BpNode.php +++ b/library/Businessprocess/BpNode.php @@ -88,9 +88,14 @@ class BpNode extends Node return $this->info_command; } + public function hasAlias() + { + return $this->alias !== null; + } + public function getAlias() { - return $this->alias; + return $this->alias ? preg_replace('~_~', ' ', $this->alias) : $this->name; } public function setAlias($name)