Configuration/ProcessConfiguration.php
public function getMainTask()
    {
        $entryTask = $this->getEntryPoint();
        if (!$entryTask) {
            $entryTask = $this->getEndPoint();
        }
        if (!$entryTask) {
            $entryTask = reset($this->taskConfigurations);
        }

        return $entryTask;
    }
public function getMainTask()
    {
        $entryTask = $this->getEntryPoint();
        if (!$entryTask) {
            $entryTask = $this->getEndPoint();
        }
        if (!$entryTask) {
            $entryTask = reset($this->taskConfigurations);
        }

        return $entryTask;
    }
Get the most important task (may be the entry or end task, or simply the first)
Used to check which tree should be used

@throws \CleverAge\ProcessBundle\Exception\MissingTaskConfigurationException

@return TaskConfiguration