Scripted rule

Prev Next

The use of Bean Shell 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 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

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.

images/download/attachments/201665491/image-2025-3-27_10-59-8-version-1-modificationdate-1743069548098-api-v2.png

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.