A script declaration is an XML file that specifies information about a script program, such as the name and data type of any properties (arguments) used by the script. The contents of a script declaration can be edited with SwitchScripter as part of a script package. See scripting overview for more background information.
When a script package is associated with a script element, the script declaration in the script package is used to:
Produce the appropriate behavior in the Switch flow designer for the associated script element with regards to supported connections and properties.
Provide the appropriate information to the runtime environment and the scripting API, for example, to access flow element properties and to allow moving jobs in accordance with the semantics for various outgoing connection types.
A script declaration contains the following information:
The name of the script.
The number and type of supported incoming and outgoing connections.
The script's execution mode (as in concurrent or serialized).
A list of definitions for properties injected into the script element.
A list of definitions for properties injected into the outgoing connections leaving the script element.
See main script properties for reference information.
Each property definition in the script declaration includes:
A tag used to uniquely identify the property to the script and its human-readable name.
The type of property editors used to enter a value for the property.
Specifications for validating the property value.
See property definition properties and property editors for reference information.