Scripted rule
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.
A Scripted rule executes a Bean Shell script entered in the editor, which should return a Boolean value (true or false).
Changing an existing script requires the permission Administration/System/BSH script/Edit script.
The following parameters are available within the context of a script:
environment |
Lobster Data Platform / Orchestration environment instance |
si |
Current user session |
logger |
Logger instance |
action |
The currently handled action including any variables (e. g. action.get("VARNAME") ) |
entity |
Current entity for the action |
em |
Current database session |
Additionally, custom variables can be defined for the rule, which can be referred to in the script.