Package org.camunda.bpm.engine.impl.el
Class ElValueProvider
- java.lang.Object
-
- org.camunda.bpm.engine.impl.el.ElValueProvider
-
- All Implemented Interfaces:
java.lang.Comparable<ElValueProvider>
,ParameterValueProvider
public class ElValueProvider extends java.lang.Object implements ParameterValueProvider, java.lang.Comparable<ElValueProvider>
Makes it possible to use expression inIoParameter
mappings.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
expression
-
Constructor Summary
Constructors Constructor Description ElValueProvider(Expression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ElValueProvider o)
Expression
getExpression()
java.lang.Object
getValue(VariableScope variableScope)
boolean
isDynamic()
void
setExpression(Expression expression)
-
-
-
Field Detail
-
expression
protected Expression expression
-
-
Constructor Detail
-
ElValueProvider
public ElValueProvider(Expression expression)
-
-
Method Detail
-
getValue
public java.lang.Object getValue(VariableScope variableScope)
- Specified by:
getValue
in interfaceParameterValueProvider
- Parameters:
variableScope
- the scope in which the value is to be resolved.- Returns:
- the value
-
getExpression
public Expression getExpression()
-
setExpression
public void setExpression(Expression expression)
-
compareTo
public int compareTo(ElValueProvider o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ElValueProvider>
-
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
-
-