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
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringscriptSourceThe source of the script.protected booleanshouldBeCompiledFlag to signal if the script should be compiled- 
Fields inherited from class org.camunda.bpm.engine.impl.scripting.CompiledExecutableScriptcompiledScript
 - 
Fields inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScriptlanguage
 
- 
 - 
Constructor SummaryConstructors Constructor Description SourceExecutableScript(java.lang.String language, java.lang.String source)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.script.CompiledScriptcompile(javax.script.ScriptEngine scriptEngine, java.lang.String language, java.lang.String src)protected voidcompileScript(javax.script.ScriptEngine engine)java.lang.Objectevaluate(javax.script.ScriptEngine engine, VariableScope variableScope, javax.script.Bindings bindings)protected java.lang.ObjectevaluateScript(javax.script.ScriptEngine engine, javax.script.Bindings bindings)java.lang.StringgetScriptSource()booleanisShouldBeCompiled()voidsetScriptSource(java.lang.String scriptSource)Sets the script source code.- 
Methods inherited from class org.camunda.bpm.engine.impl.scripting.CompiledExecutableScriptgetCompiledScript, setCompiledScript
 - 
Methods inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScriptexecute, getActivityIdExceptionMessage, getLanguage
 
- 
 
- 
- 
- 
Method Detail- 
evaluatepublic java.lang.Object evaluate(javax.script.ScriptEngine engine, VariableScope variableScope, javax.script.Bindings bindings)- Overrides:
- evaluatein class- CompiledExecutableScript
 
 - 
compileScriptprotected void compileScript(javax.script.ScriptEngine engine) 
 - 
compilepublic javax.script.CompiledScript compile(javax.script.ScriptEngine scriptEngine, java.lang.String language, java.lang.String src)
 - 
evaluateScriptprotected java.lang.Object evaluateScript(javax.script.ScriptEngine engine, javax.script.Bindings bindings) throws javax.script.ScriptException- Throws:
- javax.script.ScriptException
 
 - 
getScriptSourcepublic java.lang.String getScriptSource() 
 - 
setScriptSourcepublic void setScriptSource(java.lang.String scriptSource) Sets the script source code. And invalidates any cached compilation result.- Parameters:
- scriptSource- the new script source code
 
 - 
isShouldBeCompiledpublic boolean isShouldBeCompiled() 
 
- 
 
-