title: How to retrieve Activiti task-form using REST?
body: <p>I am using activiti community version 6.0. I have gone through the documentation but cannot see a REST API to retrieve task-form. </p>
  
  <p>I noticed Activiti uses following request url to get the form definitions:</p>
  
  <p><strong><a href="http://localhost:8080/activiti-app/app/rest/task-forms/" rel="nofollow noreferrer">http://localhost:8080/activiti-app/app/rest/task-forms/</a>{taskId}</strong></p>
  
  <p>I tried using this url along with a restTemplate to access the task forms and resulted in 401 error code. </p>
  
  <pre><code>@Service
  public class GetTaskForm {
  
  String baseURL = "http://localhost:8080/activiti-app/app/rest/task-forms/";
  
  public void getTaskForm(String taskId){
      String taskURL =  baseURL + taskId;
      RestTemplate restTemplate = new RestTemplate();
      String taskForm = restTemplate.getForObject(taskURL, String.class);
      System.out.println(taskForm);
   }
  } 
  </code></pre>
  
  <p>What would be the best way to achieve this?</p>