update code - used $this->model_bpmanagement->getProcessStatusByCode instead of $this->switch_m->get_switch