Script Executor Widget
The Script Executor widget is used to execute scripts in SAP Commerce Cloud.
Widget Definition
| Name | Script Executor |
| ID | com.hybris.backoffice.widgets.scriptexecutor |
| Category | Adapters, Scripting. |
| Description | While executing any script available in the Commerce Suite, Script Executor uses passed-in data as the context data, to populate the script. |
| Applied In | Backoffice |
| Based On | Not applicable |
| Author | SAP |
| Inputs | Details of input sockets:
|
| Outputs | Details of output sockets:
|
| Generated Events | Not applicable |
Configuration
Not applicable.
Widget Preview
Not applicable.
Settings
| Setting | Type | Description |
|---|---|---|
| scriptUri | java.lang.String | As defined in the platform scripting engine, the URI should represent a script possible to be resolved by the scripting engine. If defined, the scriptUri takes precedence before the in-line declared scripts. Refer to the scriptContent setting. |
| scriptContent | java.lang.String | If the scriptUri is not set, scriptContent is used as the script source. The script must be written using language defined via scriptContentLang. If any of the properties, scriptContentLang or scriptContent, is blank, the script is not executed. |
| scriptContentLang | java.lang.String | A language in which the script given via scriptContent property is written. It should match one of the languages supported by the platform scripting engine. Default value: groovy. |
Widget Slots
| slotID | Multiplicity | Type | Slots Composition |
|---|---|---|---|
| cockpitWidgetChildrenInvisible | multi | Not applicable | A general-purpose slot available for widgets. Any widget placed on this slot is not displayed in the application view but can be accessed through its socket API. |