Online documentation for Dynamic BeanShell

Generated 2006-03-17

BeanShell scripting component with run-time specified inputs and outputs.

Description

BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. BeanShell dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures like those in Perl and JavaScript. The component can create dynamic properties to act as inputs and outputs to the script.

Usage

The script for this component is set through the script property. The script gets run after changes to any of the properties, including the dynamic ones. The inputNamesString property is a list of inputs for the script, separated by spaces. Each input will be added as a dynamic property to the component, and can be referenced by name within the script. outputNamesString is exactly the same, but for outputs from the script. Each time the script is run, the dynamic output properties are updated according to any changes made to them within the script. The result property is the result of the last expression evaluated by the script.