Class CompositeReadOnlyVariableContainer
java.lang.Object
com.flowable.platform.common.util.CompositeReadOnlyVariableContainer
- All Implemented Interfaces:
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
Modifier and TypeFieldDescriptionprotected final String
protected final Collection<VariableContainer>
-
Constructor Summary
ConstructorDescriptionCompositeReadOnlyVariableContainer
(Collection<VariableContainer> variableContainers, String tenantId) -
Method Summary
Modifier and TypeMethodDescriptiongetVariable
(String key) boolean
hasVariable
(String key) void
setTransientVariable
(String key, Object object) void
setVariable
(String key, Object object) toString()
-
Field Details
-
variableContainers
-
tenantId
-
-
Constructor Details
-
CompositeReadOnlyVariableContainer
public CompositeReadOnlyVariableContainer(Collection<VariableContainer> variableContainers, String tenantId)
-
-
Method Details
-
hasVariable
- Specified by:
hasVariable
in interfaceVariableContainer
-
getVariable
- Specified by:
getVariable
in interfaceVariableContainer
-
setVariable
- Specified by:
setVariable
in interfaceVariableContainer
-
setTransientVariable
- Specified by:
setTransientVariable
in interfaceVariableContainer
-
getTenantId
- Specified by:
getTenantId
in interfaceVariableContainer
-
toString
-