Exemple #1
0
 /**
  * @url GET /:processUid/activity/:activityUid/extended
  */
 public function getActivityExtended($activityUid, $processUid)
 {
     $response = array();
     try {
         $task2 = new \ProcessMaker\BusinessModel\Task();
         $arrayData = array("_extended" => array("properties" => $task2->getProperties($activityUid, true), "steps" => array("steps" => $task2->getSteps($activityUid, true), "conditions" => "...", "triggers" => $task2->getTriggers($activityUid, true), "users" => $task2->getUsers($activityUid, 1, true), "users_adhoc" => $task2->getUsers($activityUid, 2, true))));
         //Response
         $response["success"] = true;
         $response["message"] = "Extended loaded successfully";
         $response["data"] = array("activity" => $arrayData);
     } catch (\Exception $e) {
         //Response
         $response["success"] = false;
         $response["message"] = $e->getMessage();
     }
     return $response;
 }