31.3. Scripting Metadata
#, depending on the scripting language in use. This information may be split over multiple lines if necessary, and single or double quotes may be used to delimit the values.
The following metadata properties are available:
mode: defines the mode of execution of a script. Can be one of the following values:
local: the script will be executed only by the node handling the request. The script itself however can invoke clustered operations.
distributed: runs the script using the Distributed Executor Service.
extension: an alternative method of specifying the script engine that will be used to execute the script, e.g. js.
role: a specific role which is required to execute the script.
parameters: an array of valid parameter names for this script. Invocations which specify parameter names not included in this list will cause an exception.