use of org.camunda.bpm.engine.rest.dto.task.IdentityLinkDto in project camunda-bpm-platform by camunda.
the class TaskResourceImpl method getIdentityLinks.
@Override
public List<IdentityLinkDto> getIdentityLinks(String type) {
TaskService taskService = engine.getTaskService();
List<IdentityLink> identityLinks = taskService.getIdentityLinksForTask(taskId);
List<IdentityLinkDto> result = new ArrayList<IdentityLinkDto>();
for (IdentityLink link : identityLinks) {
if (type == null || type.equals(link.getType())) {
result.add(IdentityLinkDto.fromIdentityLink(link));
}
}
return result;
}
Aggregations