--- title: "Script value" slug: "core-scripted-value" updated: 2026-08-14T09:13:14Z published: 2026-08-14T09:13:14Z canonical: "docs.lobstersoftware.com/core-scripted-value" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Script value *See also:* [Scripted rule](/v1/docs/en/core-scripted-rule)*,* [Script](/v1/docs/en/core-scripted-matcher) *(Event action)* > [!NOTE] > **Value resolver – Abstract** > > **Purpose:** Delivers the return value of a [BeanShell](http://www.beanshell.org/) script defined to the configuration. > > > [!TIP] > > Tooltip > > > > - **Usage**: The [BeanShell](http://www.beanshell.org/) script defined in the configuration of the value solver is processed at runtime. The return value of the script defines the return value of the value resolver. > > - **Parameter**: In addition to the text for the script to be executed, variables specific to the execution context can be defined and assigned values. > > - **NOTE:** The [Script value](/v1/docs/en/core-scripted-value) resolver is not available in a [Client Workflow](/v1/docs/en/frebehav-client-workflow). > > > > --- > > > > - **WARNING:** **Improper use of script may cause severe and irreversible damage to the system and data contained**. > > > > --- > [!CAUTION] > **WARNING:** > > The use of [Bean Shell](http://www.beanshell.org/) scripts in **Lobster Data Platform/Orchestration** requires advanced programming skills and profound knowledge of system internals. > > ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/warning.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/warning(103).svg) **Improper use of script may cause severe and irreversible damage to the system and data contained** ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/warning.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/warning(103).svg) > > [Bean Shell](http://www.beanshell.org/) scripts are used exclusively to meet requirements that are so special they cannot be covered by any of the generic configuration options available. > > Please contact **Lobster Data Platform/Orchestration** support by [support@lobstersoftware.com](mailto:support@lobstersoftware.com) for further information or to learn about options for training or workshops. ![images/download/attachments/62851638/image2022-9-28_10-47-33-version-1-modificationdate-1664354853606-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-28_10-47-33-version-1-modificationdate-1664354853606-api-v2.png) The [Script value](/v1/docs/en/core-scripted-value) resolver returns the return value of a [BeanShell](http://www.beanshell.org/) script. The following parameters are available: | Parameter | Description | | --- | --- | | `environment` | **Lobster Data Platform/Orchestration** environment instance | | `si` | Current user session | | `root` | The current data object | | `context` | The current context with all variables ( e.g. `context.getStorage().get("VARNAME")` ) | | `em` | The current database session | | `needCurrent` | Indicates whether the value must be current | In addition, you can define your own variables, which are also available in the script as variables. ## Example **Returns the value 45** ![images/download/attachments/62851638/image2018-5-18_7_0_14-version-1-modificationdate-1603707415634-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2018-5-18_7_0_14-version-1-modificationdate-1603707415634-api-v2.png) The script can be edited with a highlight editor **(1)**. Variables **(2)** can be referenced with the variable name in the script. The value of the variables can be set via value resolvers at runtime.