public function getType()
{
return $this->type;
}
/** * Loads the workflow into the manager * @throws \Exception */ private function initWorkflow() { $config = Workflow\Config::getElementWorkflowConfig($this->element); $this->workflow = Workflow\Factory::getWorkflowFromConfig($config); if (!$this->workflow) { throw new \Exception("Cannot load workflow configuration for object [{$this->element->getId()}] of type [{$this->element->getType()}]"); } }