OEModule\OphCiExamination\controllers\DefaultController::getFirstStep PHP Method

getFirstStep() protected method

Get the first workflow step using rules.
protected getFirstStep ( ) : OphCiExamination_ElementSet
return OphCiExamination_ElementSet
    protected function getFirstStep()
    {
        $firm_id = $this->firm->id;
        $status_id = $this->episode->episode_status_id;
        $workflow = new models\OphCiExamination_Workflow_Rule();
        return $workflow->findWorkflowCascading($firm_id, $status_id)->getFirstStep();
    }
DefaultController