findWorkflow() public méthode

Finds the best matching workflow.
public findWorkflow ( integer $firm_id, integer $status_id ) : OphCiExamination_Workflow
$firm_id integer
$status_id integer
Résultat OphCiExamination_Workflow
 /**
  * @throws models\CException
  */
 protected function setCurrentSet()
 {
     if (!$this->set) {
         $firm_id = $this->firm->id;
         $status_id = $this->episode ? $this->episode->episode_status_id : 1;
         $set = models\OphCiExamination_Workflow_Rule::findWorkflow($firm_id, $status_id)->getFirstStep();
         $this->set = $set;
         $this->mandatoryElements = $set->MandatoryElementTypes;
     }
 }