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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.scripting.ExecutableScript
      extended by org.camunda.bpm.engine.impl.scripting.DynamicExecutableScript
Direct Known Subclasses:
DynamicResourceExecutableScript, DynamicSourceExecutableScript

public abstract class DynamicExecutableScript
extends ExecutableScript

A script which is dynamically determined during the execution. Therefore it has to be executed in the context of an atomic operation.

Author:
Sebastian Menski

Field Summary
protected  Expression scriptExpression
           
 
Fields inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScript
language
 
Constructor Summary
protected DynamicExecutableScript(Expression scriptExpression, String language)
           
 
Method Summary
protected  String evaluateExpression(VariableScope variableScope)
           
 Object execute(ScriptEngine scriptEngine, VariableScope variableScope, Bindings bindings)
          Evaluates the script using the provided engine and bindings
abstract  String getScriptSource(VariableScope variableScope)
           
 
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

scriptExpression

protected final Expression scriptExpression
Constructor Detail

DynamicExecutableScript

protected DynamicExecutableScript(Expression scriptExpression,
                                  String language)
Method Detail

execute

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

Evaluates the script using the provided engine and bindings

Specified by:
execute in class ExecutableScript
Parameters:
scriptEngine - 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

evaluateExpression

protected String evaluateExpression(VariableScope variableScope)

getScriptSource

public abstract String getScriptSource(VariableScope variableScope)


Copyright © 2015 camunda services GmbH. All rights reserved.