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 |
---|---|
abstract Object |
execute(ScriptEngine scriptEngine,
VariableScope variableScope,
Bindings bindings)
Evaluates the script using the provided engine and bindings
|
String |
getLanguage()
The language in which the script is written.
|
protected final String language
ScriptEngine
.protected ExecutableScript(String language)
public abstract 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.public String getLanguage()
Copyright © 2018. All rights reserved.