Search in sources :

Example 6 with RestIdentityLink

use of org.activiti.rest.service.api.engine.RestIdentityLink in project Activiti by Activiti.

the class TaskIdentityLinkResource method getIdentityLink.

@RequestMapping(value = "/runtime/tasks/{taskId}/identitylinks/{family}/{identityId}/{type}", method = RequestMethod.GET, produces = "application/json")
public RestIdentityLink getIdentityLink(@PathVariable("taskId") String taskId, @PathVariable("family") String family, @PathVariable("identityId") String identityId, @PathVariable("type") String type, HttpServletRequest request) {
    Task task = getTaskFromRequest(taskId);
    validateIdentityLinkArguments(family, identityId, type);
    IdentityLink link = getIdentityLink(family, identityId, type, task.getId());
    return restResponseFactory.createRestIdentityLink(link);
}
Also used : Task(org.activiti.engine.task.Task) IdentityLink(org.activiti.engine.task.IdentityLink) RestIdentityLink(org.activiti.rest.service.api.engine.RestIdentityLink) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

RestIdentityLink (org.activiti.rest.service.api.engine.RestIdentityLink)6 IdentityLink (org.activiti.engine.task.IdentityLink)5 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)4 ArrayList (java.util.ArrayList)2 Task (org.activiti.engine.task.Task)2 ActivitiIllegalArgumentException (org.activiti.engine.ActivitiIllegalArgumentException)1 HistoricIdentityLink (org.activiti.engine.history.HistoricIdentityLink)1 ProcessDefinition (org.activiti.engine.repository.ProcessDefinition)1 ProcessInstance (org.activiti.engine.runtime.ProcessInstance)1