示例#1
0
 /**
  * Get list History case
  *
  * @copyright Colosa - Bolivia
  *
  * @url GET /history/:app_uid
  *
  * @param string $app_uid {@min 32}{@max 32}
  */
 public function doGetCasesListHistory($app_uid)
 {
     try {
         $oMobile = new \ProcessMaker\BusinessModel\Light();
         $response         = $oMobile->getCasesListHistory($app_uid);
         $response['flow'] = $this->parserDataHistory($response['flow']);
         $r             = new \stdclass();
         $r->data       = $response;
         $r->totalCount = count($response['flow']);
         return $r;
     } catch (\Exception $e) {
         throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
     }
 }
示例#2
0
 /**
  * Get list History case
  *
  * @copyright Colosa - Bolivia
  *
  * @url GET /history/:app_uid
  *
  * @param string $app_uid {@min 32}{@max 32}
  */
 public function doGetCasesListHistory($app_uid)
 {
     try {
         $arrayFieldIso8601 = array('DEL_DELEGATE_DATE', 'DEL_INIT_DATE', 'DEL_FINISH_DATE');
         $oMobile = new \ProcessMaker\BusinessModel\Light();
         $response = $oMobile->getCasesListHistory($app_uid);
         $response8601 = DateTime::convertUtcToIso8601($response['flow'], $arrayFieldIso8601);
         $response['flow'] = $this->parserDataHistory($response8601);
         $r = new \stdclass();
         $r->data = $response;
         $r->totalCount = count($response['flow']);
         return $r;
     } catch (\Exception $e) {
         throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
     }
 }