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
-
-
Constructor Summary
Constructors Constructor Description ProcessVariablesRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Variable>
create(String processId, List<Variable> variables, Parameters parameters)
Creates or updates multiple variables.void
delete(String processId, String id, Parameters parameters)
Delete a variable.CollectionWithPagingInfo<Variable>
readAll(String processId, Parameters parameters)
List the variables.void
setProcesses(Processes processes)
Variable
update(String processId, Variable entity, Parameters parameters)
Update a variable.
-
-
-
Field Detail
-
processes
protected Processes processes
-
-
Method Detail
-
setProcesses
public void setProcesses(Processes processes)
-
readAll
public CollectionWithPagingInfo<Variable> readAll(String processId, Parameters parameters)
List the variables.- Specified by:
readAll
in interfaceRelationshipResourceAction.Read<Variable>
- Parameters:
processId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default values
-
create
public List<Variable> create(String processId, List<Variable> variables, Parameters parameters)
Creates or updates multiple variables. If the variable name doesn't exist yet it will be created- Specified by:
create
in interfaceRelationshipResourceAction.Create<Variable>
-
update
public Variable update(String processId, Variable entity, Parameters parameters)
Update a variable. If the variable name doesn't exist yet it will be created- Specified by:
update
in interfaceRelationshipResourceAction.Update<Variable>
-
delete
public void delete(String processId, String id, Parameters parameters)
Delete a variable. If the variable name doesn't exist the delete call throws an exception.- Specified by:
delete
in interfaceRelationshipResourceAction.Delete
-
-