Class CompositeReadOnlyVariableContainer
- java.lang.Object
-
- com.flowable.platform.common.util.CompositeReadOnlyVariableContainer
-
- All Implemented Interfaces:
VariableContainer
public class CompositeReadOnlyVariableContainer extends Object implements VariableContainer
A read-only variable container, which iterates a collection of given variable containers to resolve a variable, in the order of iteration. The first variable container which contains the variable is used to return it.- Author:
- Arthur Hupka-Merle
-
-
Field Summary
Fields Modifier and Type Field Description protected String
tenantId
protected Collection<VariableContainer>
variableContainers
-
Constructor Summary
Constructors Constructor Description CompositeReadOnlyVariableContainer(Collection<VariableContainer> variableContainers, String tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTenantId()
Object
getVariable(String key)
boolean
hasVariable(String key)
void
setTransientVariable(String key, Object object)
void
setVariable(String key, Object object)
-
-
-
Field Detail
-
variableContainers
protected final Collection<VariableContainer> variableContainers
-
tenantId
protected final String tenantId
-
-
Constructor Detail
-
CompositeReadOnlyVariableContainer
public CompositeReadOnlyVariableContainer(Collection<VariableContainer> variableContainers, String tenantId)
-
-
Method Detail
-
hasVariable
public boolean hasVariable(String key)
- Specified by:
hasVariable
in interfaceVariableContainer
-
getVariable
public Object getVariable(String key)
- Specified by:
getVariable
in interfaceVariableContainer
-
setVariable
public void setVariable(String key, Object object)
- Specified by:
setVariable
in interfaceVariableContainer
-
setTransientVariable
public void setTransientVariable(String key, Object object)
- Specified by:
setTransientVariable
in interfaceVariableContainer
-
getTenantId
public String getTenantId()
- Specified by:
getTenantId
in interfaceVariableContainer
-
-