@ApiOperation(value = "Get the identity links of a historic task instance", tags = { "History" }, notes = "") @ApiResponses(value = { @ApiResponse(code = 200, message = "Indicates request was successful and the identity links are returned", response = HistoricIdentityLinkResponse.class, responseContainer="List"), @ApiResponse(code = 404, message = "Indicates the task instance could not be found.") }) @RequestMapping(value = "/history/historic-task-instances/{taskId}/identitylinks", method = RequestMethod.GET, produces = "application/json") public List<HistoricIdentityLinkResponse> getTaskIdentityLinks(@ApiParam(name="taskId") @PathVariable String taskId, HttpServletRequest request) { List<HistoricIdentityLink> identityLinks = historyService.getHistoricIdentityLinksForTask(taskId); if (identityLinks != null) { return restResponseFactory.createHistoricIdentityLinkResponseList(identityLinks); } return new ArrayList<HistoricIdentityLinkResponse>(); } }