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
 Object evaluate(ScriptEngine scriptEngine, VariableScope variableScope, Bindings bindings)
           
protected  String evaluateExpression(VariableScope variableScope)
           
abstract  String getScriptSource(VariableScope variableScope)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.scripting.ExecutableScript
execute, 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

evaluate

public Object evaluate(ScriptEngine scriptEngine,
                       VariableScope variableScope,
                       Bindings bindings)
Specified by:
evaluate in class ExecutableScript

evaluateExpression

protected String evaluateExpression(VariableScope variableScope)

getScriptSource

public abstract String getScriptSource(VariableScope variableScope)


Copyright © 2016 camunda services GmbH. All rights reserved.