Class ExecutableScript
java.lang.Object
org.camunda.bpm.engine.impl.scripting.ExecutableScript
- Direct Known Subclasses:
CompiledExecutableScript
,DynamicExecutableScript
Represents an executable script.
- Author:
- Daniel Meyer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Object
evaluate
(ScriptEngine scriptEngine, VariableScope variableScope, Bindings bindings) execute
(ScriptEngine scriptEngine, VariableScope variableScope, Bindings bindings) Evaluates the script using the provided engine and bindingsprotected String
getActivityIdExceptionMessage
(VariableScope variableScope) The language in which the script is written.
-
Field Details
-
language
The language of the script. Used to resolve theScriptEngine
.
-
-
Constructor Details
-
ExecutableScript
-
-
Method Details
-
getLanguage
The language in which the script is written.- Returns:
- the language
-
execute
Evaluates the script using the provided engine and bindings
- Parameters:
scriptEngine
- the script engine to use for evaluating the script.variableScope
- the variable scope of the executionbindings
- the bindings to use for evaluating the script.- Returns:
- the result of the script evaluation
- Throws:
ProcessEngineException
- in case the script cannot be evaluated.
-
getActivityIdExceptionMessage
-
evaluate
protected abstract Object evaluate(ScriptEngine scriptEngine, VariableScope variableScope, Bindings bindings)
-