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