public abstract class AbstractVariablesResource extends Object implements VariableResource
| Modifier and Type | Field and Description |
|---|---|
protected ProcessEngine |
engine |
protected String |
resourceId |
| Constructor and Description |
|---|
AbstractVariablesResource(ProcessEngine engine,
String resourceId) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteVariable(String variableName) |
protected abstract String |
getResourceTypeName() |
VariableValueDto |
getVariable(String variableName) |
protected abstract Map<String,Object> |
getVariableEntities() |
protected abstract Object |
getVariableEntity(String variableKey) |
Map<String,VariableValueDto> |
getVariables() |
void |
modifyVariables(PatchVariablesDto patch) |
void |
putVariable(String variableName,
VariableValueDto variable) |
protected abstract void |
removeVariableEntity(String variableKey) |
protected abstract void |
setVariableEntity(String variableKey,
Object variableValue) |
protected abstract void |
updateVariableEntities(Map<String,Object> variables,
List<String> deletions) |
protected ProcessEngine engine
protected String resourceId
public AbstractVariablesResource(ProcessEngine engine, String resourceId)
public Map<String,VariableValueDto> getVariables()
getVariables in interface VariableResourcepublic VariableValueDto getVariable(String variableName)
getVariable in interface VariableResourcepublic void putVariable(String variableName, VariableValueDto variable)
putVariable in interface VariableResourcepublic void deleteVariable(String variableName)
deleteVariable in interface VariableResourcepublic void modifyVariables(PatchVariablesDto patch)
modifyVariables in interface VariableResourceprotected abstract void updateVariableEntities(Map<String,Object> variables, List<String> deletions)
protected abstract void setVariableEntity(String variableKey, Object variableValue)
protected abstract void removeVariableEntity(String variableKey)
protected abstract String getResourceTypeName()
Copyright © 2015. All rights reserved.