SET PROTOTYPE ACTION is an advanced feature used to manipulate LIST's and SCALAR's and trigger ACTION's using the Java-like scripting language Groovy.
In addition to the Essential Parameters, one of either File: or Text: parameters must contain the Groovy source script.
There must be at least one use of each object listed in Parameters:, Outputs:, and Action Parameters:.
Groovy API Documentation is a useful reference.
|SET PROTOTYPE ACTION
|Input LIST's and SCALAR's available by name in the script block.
|Declaration of new object references that will contain the output from a Groovy script
|The Groovy script text to run.
|A file containing the Groovy script text.
|Names of ACTION GROUP's available to be .run(); by the script. (example below)
|Script executed if this evaluates to 'TRUE'
Below are two examples: the first shows a simple Groovy script, the second shows the use of Action Parameters:
Below is a simple Groovy script in an EASAP to allow the user to enter a person's name and the script creates a greeting which is displayed in a LABEL.
This example creates an EASAP with the interface below:
First set up an EASAP with the objects below:
This insures that values are refreshed following the script execution.
The EASAP executes as follows:
The Tree below outlines an EASAP that:
This scripts requires Parameters:, Outputs: and Action Parameters: to be declared as they are in the screenshot below.