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

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

public class SourceExecutableScript
extends ExecutableScript

A script which is provided as source code. This is used if the corresponding script engine does not support compilation.

Author:
Daniel Meyer

Field Summary
protected  Reader scriptSrc
          The source of the script.
 
Fields inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScript
language
 
Constructor Summary
SourceExecutableScript(String language, Reader src)
           
 
Method Summary
 Object execute(ScriptEngine engine, Bindings bindings)
          Evaluates the script using the provided engine and bindings
 
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

scriptSrc

protected final Reader scriptSrc
The source of the script.

Constructor Detail

SourceExecutableScript

public SourceExecutableScript(String language,
                              Reader src)
Method Detail

execute

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

Evaluates the script using the provided engine and bindings

Specified by:
execute in class ExecutableScript
Parameters:
engine - the script engine to use for evaluating the script.
bindings - the bindings to use for evaluating the script.
Returns:
the result of the script evaluation


Copyright © 2014 camunda services GmbH. All Rights Reserved.