/** * 接受 */ public function accept() { $flow_mod = Model\Flow::find($this->flow->flow_id); if (empty($flow_mod)) { throw new Exception("流程id不存在"); } $flow_info = $flow_mod->getAttributes(); $role_steps = Util\Condition::getRunningStepsByRoles($this->flow->tpl_name, $flow_info['current_step'], array($this->flow->running_role)); $this->flow->running_step = $role_steps[0]['step_index']; // 设置第一个可执行的步骤为当前步骤 // 校验是否可以执行接受动作 Util\Condition::checkAcceptCondition($this->flow); //外部打点 // 跳转到指定步骤 Util\Step::accept($this->flow); }