Class ScriptValueProvider
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.scripting.ScriptValueProvider
 
- 
- All Implemented Interfaces:
- ParameterValueProvider
 
 public class ScriptValueProvider extends java.lang.Object implements ParameterValueProvider Makes it possible to use scripts inIoParametermappings.- Author:
- Daniel Meyer
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ExecutableScriptscript
 - 
Constructor SummaryConstructors Constructor Description ScriptValueProvider(ExecutableScript script)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutableScriptgetScript()java.lang.ObjectgetValue(VariableScope variableScope)booleanisDynamic()voidsetScript(ExecutableScript script)
 
- 
- 
- 
Field Detail- 
scriptprotected ExecutableScript script 
 
- 
 - 
Constructor Detail- 
ScriptValueProviderpublic ScriptValueProvider(ExecutableScript script) 
 
- 
 - 
Method Detail- 
getValuepublic java.lang.Object getValue(VariableScope variableScope) - Specified by:
- getValuein interface- ParameterValueProvider
- Parameters:
- variableScope- the scope in which the value is to be resolved.
- Returns:
- the value
 
 - 
isDynamicpublic boolean isDynamic() - Specified by:
- isDynamicin interface- ParameterValueProvider
- 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
 
 
 - 
getScriptpublic ExecutableScript getScript() 
 - 
setScriptpublic void setScript(ExecutableScript script) 
 
- 
 
-