Class ConstantValueProvider
java.lang.Object
org.camunda.bpm.engine.impl.core.variable.mapping.value.ConstantValueProvider
- All Implemented Interfaces:
ParameterValueProvider
A constant parameter value.
- Author:
- Daniel Meyer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
ConstantValueProvider
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfaceParameterValueProvider
- Parameters:
scope
- the scope in which the value is to be resolved.- Returns:
- the value
-
setValue
-
isDynamic
public boolean isDynamic()- Specified by:
isDynamic
in interfaceParameterValueProvider
- Returns:
- true if the value provider:
- Can return a different value depending on the passed variable scope
- May uses external data for its resolution
- May have side effects
ParameterValueProvider.getValue(VariableScope)
can assume that:- passing an empty variable scope returns the same value as passing any other variable scope
- Calling
ParameterValueProvider.getValue(VariableScope)
multiple times always returns the same value - Calling
ParameterValueProvider.getValue(VariableScope)
does not have side effects
-