org.camunda.bpm.engine.impl.scripting
Class ResourceExecutableScript

java.lang.Object
  extended by org.camunda.bpm.engine.impl.scripting.ExecutableScript
      extended by org.camunda.bpm.engine.impl.scripting.SourceExecutableScript
          extended by org.camunda.bpm.engine.impl.scripting.ResourceExecutableScript

public class ResourceExecutableScript
extends SourceExecutableScript

A script which is provided by an external resource.

Author:
Sebastian Menski

Field Summary
protected  String scriptResource
           
 
Fields inherited from class org.camunda.bpm.engine.impl.scripting.SourceExecutableScript
compiledScript, scriptSource, shouldBeCompiled
 
Fields inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScript
language
 
Constructor Summary
ResourceExecutableScript(String language, String scriptResource)
           
 
Method Summary
 Object execute(ScriptEngine engine, VariableScope variableScope, Bindings bindings)
          Evaluates the script using the provided engine and bindings
protected  void loadScriptSource()
           
 
Methods inherited from class org.camunda.bpm.engine.impl.scripting.SourceExecutableScript
compileScript, evaluateScript, getCompiledScript, getScriptSource, isShouldBeCompiled, setScriptSource
 
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

scriptResource

protected String scriptResource
Constructor Detail

ResourceExecutableScript

public ResourceExecutableScript(String language,
                                String scriptResource)
Method Detail

execute

public Object execute(ScriptEngine engine,
                      VariableScope variableScope,
                      Bindings bindings)
Description copied from class: ExecutableScript

Evaluates the script using the provided engine and bindings

Overrides:
execute in class SourceExecutableScript
Parameters:
engine - the script engine to use for evaluating the script.
variableScope - the variable scope of the execution
bindings - the bindings to use for evaluating the script.
Returns:
the result of the script evaluation

loadScriptSource

protected void loadScriptSource()


Copyright © 2014 camunda services GmbH. All rights reserved.