/** * Retrieves the form key of the given task * @link http://docs.camunda.org/api-references/rest/#!/task/get-form-key * * @param String $id task ID * @throws \Exception * @return Form start form object */ public function getFormKey($id) { $form = new Form(); $this->setRequestUrl('/task/' . $id . '/form'); $this->setRequestMethod('GET'); $this->setRequestObject(null); try { return $form->cast($this->execute()); } catch (Exception $e) { throw $e; } }