diff --git a/library/Businessprocess/BpNode.php b/library/Businessprocess/BpNode.php index b6e29d4..9aeaab8 100644 --- a/library/Businessprocess/BpNode.php +++ b/library/Businessprocess/BpNode.php @@ -374,7 +374,7 @@ class BpNode extends Node $sort_states = array(); $lastStateChange = 0; - if (!$this->hasChildren()) { + if ($this->isEmpty()) { // TODO: delegate this to operators, should mostly fail $this->setState(self::NODE_EMPTY); return $this;