public class TaskResourceImpl extends Object implements TaskResource
Constructor and Description |
---|
TaskResourceImpl(ProcessEngine engine,
String taskId) |
Modifier and Type | Method and Description |
---|---|
void |
addIdentityLink(IdentityLinkDto identityLink) |
void |
claim(UserIdDto dto) |
void |
complete(CompleteTaskDto dto) |
void |
delegate(UserIdDto delegatedUser) |
void |
deleteIdentityLink(IdentityLinkDto identityLink) |
FormDto |
getForm() |
List<IdentityLinkDto> |
getIdentityLinks(String type) |
String |
getRenderedForm() |
TaskDto |
getTask() |
protected Task |
getTaskById(String id)
Returns the task with the given id
|
void |
resolve(CompleteTaskDto dto) |
void |
setAssignee(UserIdDto dto) |
void |
submit(CompleteTaskDto dto) |
void |
unclaim() |
public TaskResourceImpl(ProcessEngine engine, String taskId)
public void claim(UserIdDto dto)
claim
in interface TaskResource
public void unclaim()
unclaim
in interface TaskResource
public void complete(CompleteTaskDto dto)
complete
in interface TaskResource
public void submit(CompleteTaskDto dto)
submit
in interface TaskResource
public void delegate(UserIdDto delegatedUser)
delegate
in interface TaskResource
public TaskDto getTask()
getTask
in interface TaskResource
public FormDto getForm()
getForm
in interface TaskResource
public String getRenderedForm()
getRenderedForm
in interface TaskResource
public void resolve(CompleteTaskDto dto)
resolve
in interface TaskResource
protected Task getTaskById(String id)
id
- public void setAssignee(UserIdDto dto)
setAssignee
in interface TaskResource
public List<IdentityLinkDto> getIdentityLinks(String type)
getIdentityLinks
in interface TaskResource
public void addIdentityLink(IdentityLinkDto identityLink)
addIdentityLink
in interface TaskResource
public void deleteIdentityLink(IdentityLinkDto identityLink)
deleteIdentityLink
in interface TaskResource
Copyright © 2015. All rights reserved.