/** * @url POST * * @param string $pro_uid {@from body} {@min 32}{@max 32} * @param string $tas_uid {@from body} {@min 32}{@max 32} * @param array $variables {@from body} * */ public function doPostCase($pro_uid, $tas_uid, $variables = null) { try { $userUid = $this->getUserId(); $cases = new \ProcessMaker\BusinessModel\Cases(); $oData = $cases->addCase($pro_uid, $tas_uid, $userUid, $variables); return $oData; } catch (\Exception $e) { throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); } }