how can i access all the tasks associated with any process instance in jBPM6 using REST API.
i can see following way to retrieve the same, please suggest any better approach
get all the tasks id from task
List<Long> lst = taskService.getTasksByProcessInstanceId(processInstance.getId());
and then based on the id get tasks name
also please suggest better approach to implement the functionality which i have attached here with