Script value
See also: Scripted rule, Script (Event action)
Value resover – Abstract
Purpose: Delivers the return value of a BeanShell script defined to the configuration.
The use of Bean Shell scripts in Lobster Data Platform / Orchestration requires advanced programming skills and profound knowledge of system internals.
Improper use of script may cause severe and irreversible damage to the system and data contained
Bean Shell 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@scm.lobster.de for further information or to learn about options for training or workshops.
The Script value resolver returns the return value of a BeanShell 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
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.