org.camunda.bpm.engine.impl.scripting
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
public class SourceExecutableScript
- extends CompiledExecutableScript
A script which is provided as source code.
- Author:
- Daniel Meyer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scriptSource
protected String scriptSource
- The source of the script.
shouldBeCompiled
protected boolean shouldBeCompiled
- Flag to signal if the script should be compiled
SourceExecutableScript
public SourceExecutableScript(String language,
String source)
evaluate
public Object evaluate(ScriptEngine engine,
VariableScope variableScope,
Bindings bindings)
- Overrides:
evaluate in class CompiledExecutableScript
compileScript
protected void compileScript(ScriptEngine engine)
compile
public CompiledScript compile(ScriptEngine scriptEngine,
String language,
String src)
evaluateScript
protected Object evaluateScript(ScriptEngine engine,
Bindings bindings)
throws ScriptException
- Throws:
ScriptException
getScriptSource
public String getScriptSource()
setScriptSource
public void setScriptSource(String scriptSource)
- Sets the script source code. And invalidates any cached compilation result.
- Parameters:
scriptSource - the new script source code
isShouldBeCompiled
public boolean isShouldBeCompiled()
Copyright © 2018 camunda services GmbH. All rights reserved.