Exemplo n.º 1
0
 /**
  * @override
  */
 public function find($options = array())
 {
     $data = parent::find($options);
     if (!$data) {
         return $data;
     }
     /**
      * 工作流
      */
     if ($this->workflowAlias and false !== $this->includeWorkflowProcess) {
         import("@.Workflow.Workflow");
         $workflow = new Workflow($this->workflowAlias);
         $processData = $workflow->getCurrentProcess($data[$this->workflowMainRowField]);
         $data["processes"] = $processData;
     }
     return $data;
 }