Class SourceExecutableScript
java.lang.Object
org.camunda.bpm.engine.impl.scripting.ExecutableScript
org.camunda.bpm.engine.impl.scripting.CompiledExecutableScript
org.camunda.bpm.engine.impl.scripting.SourceExecutableScript
- Direct Known Subclasses:
ResourceExecutableScript
A script which is provided as source code.
- Author:
- Daniel Meyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe source of the script.protected booleanFlag to signal if the script should be compiledFields inherited from class org.camunda.bpm.engine.impl.scripting.CompiledExecutableScript
compiledScriptFields inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScript
language -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(ScriptEngine scriptEngine, String language, String src) protected voidcompileScript(ScriptEngine engine) evaluate(ScriptEngine engine, VariableScope variableScope, Bindings bindings) protected ObjectevaluateScript(ScriptEngine engine, Bindings bindings) booleanvoidsetScriptSource(String scriptSource) Sets the script source code.Methods inherited from class org.camunda.bpm.engine.impl.scripting.CompiledExecutableScript
getCompiledScript, setCompiledScriptMethods inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScript
execute, getActivityIdExceptionMessage, getLanguage
-
Field Details
-
scriptSource
The source of the script. -
shouldBeCompiled
protected boolean shouldBeCompiledFlag to signal if the script should be compiled
-
-
Constructor Details
-
SourceExecutableScript
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classCompiledExecutableScript
-
compileScript
-
compile
-
evaluateScript
- Throws:
ScriptException
-
getScriptSource
-
setScriptSource
Sets the script source code. And invalidates any cached compilation result.- Parameters:
scriptSource- the new script source code
-
isShouldBeCompiled
public boolean isShouldBeCompiled()
-