Class ScriptBindings
java.lang.Object
org.camunda.bpm.engine.impl.scripting.engine.ScriptBindings
A Bindings
implementation which wraps an existing binding and enhances the key / value map with
read-only access to:
- variables provided in a
VariableScope
, - additional bindings provided through a set of
Resolvers
.
Note on backwards compatibility: before 7.2 the Script
bindings behaved in a way that all script variables were automatically exposed
as process variables. You can enable this behavior by setting autoStoreScriptVariables
.
- Author:
- Tom Baeyens, Daniel Meyer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
if true, all script variables will be set in the variable scope.The script engine implementations put some key/value pairs into the binding.protected VariableScope
protected Bindings
-
Constructor Summary
ConstructorDescriptionScriptBindings
(List<Resolver> scriptResolvers, VariableScope variableScope, Bindings wrappedBindings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
protected boolean
boolean
isEmpty()
keySet()
void
int
size()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
UNSTORED_KEYS
The script engine implementations put some key/value pairs into the binding. This list contains those keys, such that they wouldn't be stored as process variable. This list contains the keywords for JUEL, Javascript and Groovy. -
scriptResolvers
-
variableScope
-
wrappedBindings
-
autoStoreScriptVariables
protected boolean autoStoreScriptVariablesif true, all script variables will be set in the variable scope.
-
-
Constructor Details
-
ScriptBindings
public ScriptBindings(List<Resolver> scriptResolvers, VariableScope variableScope, Bindings wrappedBindings)
-
-
Method Details
-
isAutoStoreScriptVariablesEnabled
protected boolean isAutoStoreScriptVariablesEnabled() -
containsKey
- Specified by:
containsKey
in interfaceBindings
- Specified by:
containsKey
in interfaceMap<String,
Object>
-
get
-
put
-
entrySet
-
keySet
-
size
public int size() -
values
-
putAll
-
remove
-
clear
public void clear() -
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object>
-
isEmpty
public boolean isEmpty() -
calculateBindingMap
-