Class TaskVariablesRelation
java.lang.Object
org.alfresco.rest.workflow.api.tasks.TaskVariablesRelation
- All Implemented Interfaces:
RelationshipResourceAction.Create<TaskVariable>,RelationshipResourceAction.Delete,RelationshipResourceAction.Read<TaskVariable>,RelationshipResourceAction.Update<TaskVariable>,ResourceAction
@RelationshipResource(name="variables",
entityResource=TasksRestEntityResource.class,
title="Variables for the current task")
public class TaskVariablesRelation
extends Object
implements RelationshipResourceAction.Read<TaskVariable>, RelationshipResourceAction.Create<TaskVariable>, RelationshipResourceAction.Update<TaskVariable>, RelationshipResourceAction.Delete
- Author:
- Tijs Rademakers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String taskId, List<TaskVariable> variables, Parameters parameters) Creates or updates multiple task variables.voiddelete(String entityResourceId, String id, Parameters parameters) Delete a task variable.readAll(String taskId, Parameters parameters) List the tasks variables.voidupdate(String taskId, TaskVariable entity, Parameters parameters) Update a task variable.
-
Constructor Details
-
TaskVariablesRelation
public TaskVariablesRelation()
-
-
Method Details
-
setTasks
-
readAll
List the tasks variables.- Specified by:
readAllin interfaceRelationshipResourceAction.Read<TaskVariable>- Parameters:
taskId- Entity resource context for this relationshipparameters- - will never be null and will have the PAGING default values- See Also:
-
create
public List<TaskVariable> create(String taskId, List<TaskVariable> variables, Parameters parameters) Creates or updates multiple task variables. If the variable name doesn't exist yet it will be created- Specified by:
createin interfaceRelationshipResourceAction.Create<TaskVariable>
-
update
Update a task variable. If the variable name doesn't exist yet it will be created- Specified by:
updatein interfaceRelationshipResourceAction.Update<TaskVariable>
-
delete
Delete a task variable. If the variable name doesn't exist the delete call throws an exception.- Specified by:
deletein interfaceRelationshipResourceAction.Delete
-