protected function _validateCause(TransitionModel $trans) { if (!$trans->getAutomatic()) { if (!is_array($this->_messages)) { $this->_messages = array(); } $this->_messages[self::NOT_AUTOMATIC] = $this->_messageTemplatesUser[self::NOT_AUTOMATIC]; return false; } if (!$trans->getAutomaticInfo()) { if (!is_array($this->_messages)) { $this->_messages = array(); } $this->_messages[self::NOT_AUTOMATIC_INFO] = $this->_messageTemplatesUser[self::NOT_AUTOMATIC_INFO]; return false; } return true; }