Testing script compilation in the Script Editor
If you have created a new script, you need to compile it. The script is not executable until it has been compiled. You can test script compilation in the Script Editor.
To test compiling scripts
-
In the Designer, select the script in the Script Library category.
-
Select the Edit script task.
-
Start compilation with the icon , Script | Compile script menu item or F9.
All scripts are converted during compilation. The assemblies are created and placed on the workstation where generating will take place. During the conversion, the script code is tested for validity. This process may required some time.
Error messages are sent to the Compiler errors view. A double-click on the error message takes you straight to the corresponding line in the script code view where you can edit it. It can be modified at this point.
IMPORTANT: Once you have tested the script it needs to be added to the One Identity Manager database and compiled with the Database Compiler. For more detailed information, see the One Identity Manager Operational Guide.
Overriding scripts
You might want to label scripts for overriding if there are limits to how much you can modify default scripts. Scripts that can be overwritten are labeled with the overridable property.
NOTE: Only the default scripts that are supplied can be overriden. Custom scripts cannot be overridden because these are saved in a Custom scripts script class.
To override a script
-
In the Designer, select the script to override in Script Library | Overridable scripts.
-
Select the Copy script task.
-
In the Copy script dialog, edit the following information.
-
To create the copy, click OK.
-
In the Script Editor, replace the overridable property with overrides in the script header.
-
Modify the other script code accordingly to suit your requirements.
IMPORTANT: After creating and editing the script, you should test compiling the script. Compile the scripts in the script library for this script to take effect.
Syntax example
Public overridable Function My_Function() as Boolean
'script code of the original version
End Function
Public overrides Function My_Function() as Boolean
End Function
Related topics
Permissions for executing scripts
The basic permissions for executing scripts are granted to the logged in user through the program feature Allow the starting of arbitrary scripts from the frontend (Common_StartScripts).
If a script is assigned a program function (QBMScriptHasFeature table), users can only execute this script if they have the necessary permissions groups. An error occurs if the user does not own this program function and tries to run it.
Detailed information about managing permissions and executing scripts through program functions can be found in the One Identity Manager Authorization and Authentication Guide.
Editing and testing script code with the System Debugger
The System Debugger gives you the opportunity to test scripts, templates, formatting rules, methods, and table scripts. Visual Studio debug and edit options are available to you.
The following software must be installed to use the System Debugger:
NOTE: To use the System Debugger with privileges without starting Visual Studio, you must install the One Identity Manager components in a local directory which is not controlled through user accounts.
Detailed information about this topic