public abstract class ExecutableScript extends Object
Represents an executable script.
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
language
The language of the script. 
 | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
ExecutableScript(String language)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract Object | 
evaluate(ScriptEngine scriptEngine,
        VariableScope variableScope,
        Bindings bindings)  | 
Object | 
execute(ScriptEngine scriptEngine,
       VariableScope variableScope,
       Bindings bindings)
Evaluates the script using the provided engine and bindings 
 | 
protected String | 
getActivityIdExceptionMessage(VariableScope variableScope)  | 
String | 
getLanguage()
The language in which the script is written. 
 | 
protected final String language
ScriptEngine.protected ExecutableScript(String language)
public String getLanguage()
public Object execute(ScriptEngine scriptEngine, VariableScope variableScope, Bindings bindings)
Evaluates the script using the provided engine and bindings
scriptEngine - the script engine to use for evaluating the script.variableScope - the variable scope of the executionbindings - the bindings to use for evaluating the script.ProcessEngineException - in case the script cannot be evaluated.protected String getActivityIdExceptionMessage(VariableScope variableScope)
protected abstract Object evaluate(ScriptEngine scriptEngine, VariableScope variableScope, Bindings bindings)
Copyright © 2021. All rights reserved.