@PublicAPI public class TaskScript extends Script<Serializable>
Modifier and Type | Field and Description |
---|---|
static String |
RESULT_VARIABLE
The variable name which must be set after the evaluation
of a script task.
|
ARGUMENTS_NAME, DEFAULT_OUTPUT_MAX_SIZE, id, logger, MD5, parameters, script, scriptEngineLookupName, url
Constructor and Description |
---|
TaskScript(Script script) |
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultScriptName() |
String |
getId()
String identifying the script.
|
protected Reader |
getReader()
The reader used to read the script.
|
protected ScriptResult<Serializable> |
getResult(Object evalResult,
Bindings bindings)
Return the variable awaited from the script execution
|
protected void |
prepareSpecialBindings(Bindings bindings)
Specify the variable awaited from the script execution
|
createScriptEngine, digest, display, equals, execute, execute, fetchScript, fetchScriptWithExceptionHandling, fetchUrlIfNeeded, getEngineName, getOwner, getParameters, getScript, getScriptName, getScriptUrl, getSessionid, hashCode, isLazyFetch, overrideDefaultScriptName, prepareBindings, readFile, setOwner, setScript, setSessionid, toString
public static final String RESULT_VARIABLE
public TaskScript(Script script)
protected ScriptResult<Serializable> getResult(Object evalResult, Bindings bindings)
Script
getResult
in class Script<Serializable>
protected String getDefaultScriptName()
getDefaultScriptName
in class Script<Serializable>
public String getId()
Script
getId
in class Script<Serializable>
protected void prepareSpecialBindings(Bindings bindings)
Script
prepareSpecialBindings
in class Script<Serializable>
protected Reader getReader()
Script
getReader
in class Script<Serializable>