Specifications

a script element, and the package contains an icon, the flow designer uses the icon to display
the script element in the canvas. Otherwise the flow designer uses the default script element
icon.
Password protection
A script package can be saved with a password. This means the script package can no longer be
opened in SwitchScripter (for viewing or editing) without providing the same password. However
the script package can still be executed by PowerSwitch. There is no way to block a script package
from being executed.
The password protection allows a script author to distribute script packages without providing
other parties with access to the script’s source code (with an important exception – see the note
below).
Note:
Important note: Certain Enfocus employees have access to the mechanism that bypasses the
password protection (because even password-protected scripts can be executed and thus opened
by Switch). While Enfocus does not intend to open password-protected scripts for viewing, and
does not intend to publish the bypass mechanism, the company does not legally guarantee that
this will never happen. It is important for script authors to understand the limitations of the
protection.
Script declaration
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.
Purpose
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.
Main script properties
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.
137
Enfocus Switch 10