Search in sources :

Example 1 with IdentityLinkDto

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;
}
Also used : TaskService(org.camunda.bpm.engine.TaskService) IdentityLinkDto(org.camunda.bpm.engine.rest.dto.task.IdentityLinkDto) ArrayList(java.util.ArrayList) IdentityLink(org.camunda.bpm.engine.task.IdentityLink)

Aggregations

ArrayList (java.util.ArrayList)1 TaskService (org.camunda.bpm.engine.TaskService)1 IdentityLinkDto (org.camunda.bpm.engine.rest.dto.task.IdentityLinkDto)1 IdentityLink (org.camunda.bpm.engine.task.IdentityLink)1