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
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Collection<VariableContainer> -
Constructor Summary
ConstructorsConstructorDescriptionCompositeReadOnlyVariableContainer(Collection<VariableContainer> variableContainers, String tenantId) -
Method Summary
Modifier and TypeMethodDescriptiongetVariable(String key) booleanhasVariable(String key) voidsetTransientVariable(String key, Object object) voidsetVariable(String key, Object object) toString()
-
Field Details
-
variableContainers
-
tenantId
-
-
Constructor Details
-
CompositeReadOnlyVariableContainer
public CompositeReadOnlyVariableContainer(Collection<VariableContainer> variableContainers, String tenantId)
-
-
Method Details
-
hasVariable
- Specified by:
hasVariablein interfaceVariableContainer
-
getVariable
- Specified by:
getVariablein interfaceVariableContainer
-
setVariable
- Specified by:
setVariablein interfaceVariableContainer
-
setTransientVariable
- Specified by:
setTransientVariablein interfaceVariableContainer
-
getTenantId
- Specified by:
getTenantIdin interfaceVariableContainer
-
toString
-