コード例 #1
0
ファイル: Trigger.php プロジェクト: emildev35/processmaker
 /**
  * @param string $projectUid {@min 1} {@max 32}
  * @param string $triggerUid {@min 1} {@max 32}
  * @param array $request_data
  * @param string $tri_title {@from body}
  * @param string $tri_description {@from body}
  * @param string $tri_type {@from body}
  * @param string $tri_webbot {@from body}
  * @param string $tri_param {@from body}
  * @return void
  *
  * @author Brayan Pereyra (Cochalo) <*****@*****.**>
  * @copyright Colosa - Bolivia
  *
  * @url PUT /:projectUid/trigger/:triggerUid
  */
 public function doPutTrigger($projectUid, $triggerUid, $request_data, $tri_title = '', $tri_description = '', $tri_type = 'SCRIPT', $tri_webbot = '', $tri_param = '')
 {
     try {
         $request_data['tri_uid'] = $triggerUid;
         $trigger = new \ProcessMaker\BusinessModel\Trigger();
         $trigger->saveTrigger($projectUid, $request_data, false, $triggerUid);
     } catch (\Exception $e) {
         throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
     }
 }