|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.scripting.ExecutableScript
org.camunda.bpm.engine.impl.scripting.SourceExecutableScript
public class SourceExecutableScript
A script which is provided as source code.
| Field Summary | |
|---|---|
protected CompiledScript |
compiledScript
The cached compiled script. |
protected String |
scriptSource
The source of the script. |
protected boolean |
shouldBeCompiled
Flag to signal if the script should be compiled |
| Fields inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScript |
|---|
language |
| Constructor Summary | |
|---|---|
SourceExecutableScript(String language,
String source)
|
|
| Method Summary | |
|---|---|
protected void |
compileScript()
|
protected Object |
evaluateScript(ScriptEngine engine,
Bindings bindings)
|
Object |
execute(ScriptEngine engine,
VariableScope variableScope,
Bindings bindings)
Evaluates the script using the provided engine and bindings |
CompiledScript |
getCompiledScript()
|
String |
getScriptSource()
|
boolean |
isShouldBeCompiled()
|
void |
setScriptSource(String scriptSource)
Sets the script source code. |
| Methods inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScript |
|---|
getLanguage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String scriptSource
protected boolean shouldBeCompiled
protected CompiledScript compiledScript
| Constructor Detail |
|---|
public SourceExecutableScript(String language,
String source)
| Method Detail |
|---|
public Object execute(ScriptEngine engine,
VariableScope variableScope,
Bindings bindings)
ExecutableScriptEvaluates the script using the provided engine and bindings
execute in class ExecutableScriptengine - the script engine to use for evaluating the script.variableScope - the variable scope of the executionbindings - the bindings to use for evaluating the script.
protected void compileScript()
protected Object evaluateScript(ScriptEngine engine,
Bindings bindings)
public String getScriptSource()
public void setScriptSource(String scriptSource)
scriptSource - the new script source codepublic CompiledScript getCompiledScript()
public boolean isShouldBeCompiled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||