public class ScriptExecutorController
extends DefaultWidgetController
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INPUT_SOCKET_DATA |
static java.lang.String |
SETTING_SCRIPT_CONTENT |
static java.lang.String |
SETTING_SCRIPT_CONTENT_LANG |
static java.lang.String |
SETTING_SCRIPT_URI |
static java.lang.String |
SOCKET_OUTPUT_ERROR |
static java.lang.String |
SOCKET_OUTPUT_SUCCESS |
| Constructor and Description |
|---|
ScriptExecutorController() |
| Modifier and Type | Method and Description |
|---|---|
protected ScriptExecutionResult |
executeScript(ScriptExecutable executable,
java.lang.Object data) |
protected void |
executeScriptByURI(java.lang.Object data,
java.lang.String scriptId) |
protected void |
executeScriptWithInlineContent(java.lang.Object data,
java.lang.String scriptContent,
java.lang.String scriptContentLang) |
protected ScriptingLanguagesService |
getScriptingLanguagesService() |
void |
input(java.lang.Object data)
Method runs the script based on it's widget settings.
|
public static final java.lang.String INPUT_SOCKET_DATA
public static final java.lang.String SETTING_SCRIPT_URI
public static final java.lang.String SETTING_SCRIPT_CONTENT
public static final java.lang.String SETTING_SCRIPT_CONTENT_LANG
public static final java.lang.String SOCKET_OUTPUT_SUCCESS
public static final java.lang.String SOCKET_OUTPUT_ERROR
public void input(java.lang.Object data)
data - the data which is accessible in the script under the "data" variable name.protected void executeScriptWithInlineContent(java.lang.Object data,
java.lang.String scriptContent,
java.lang.String scriptContentLang)
protected void executeScriptByURI(java.lang.Object data,
java.lang.String scriptId)
protected ScriptExecutionResult executeScript(ScriptExecutable executable, java.lang.Object data)
protected ScriptingLanguagesService getScriptingLanguagesService()
Copyright © 2018 SAP SE. All Rights Reserved.