Additional input aids are provided for creating script code.
The input fields support syntax highlighting depending on the syntax type.
Auto-completion can be used when creating script code. The amount of scripted code to enter is reduced by displaying the names of properties or functions that can be used. Automatic completion is called with the key combination CTRL + SPACE at the appropriate point in the editor. The contents of the list is determined by the key words in the code.
Input fields that required data in VB.Net syntax support code snippets. Standard code snippets are available in the option "Visual Basic". The option "Object layer" contains special code snippets for the One Identity Manager object layer.
You can insert code snippets using the following options:
|
NOTE: Remember that the connection name is case sensitive. |
|
NOTE: If you select the code snippet using a shortcut or the |
|
TIP: You can use custom code snippets. To do this, create a directory CustomSnippets in the One Identity Manager installation directory to store the code snippets. Use Visual Studio documentation to develop your own code snippets. |
Scripts are displayed in the category Script Library in the Designer. Scripts are organized into the subcategories custom, product dependent and general usage scripts. You can gather all the information about usage, for example, in column definitions, processes or other scripts, in the script overview.
Use the Script Editor to create and edit your scripts.
|
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. |
To create a new script
Property | Description |
---|---|
Script |
Name of script. Label custom scripts with the prefix "CCC_". |
Description | Detailed description of the script's funcionality. |
Script code | One Identity Manager scripts are written in VB.Net syntax, which allows all VB.Net functions to be used. The values to be edited are given as preprocessor instructions. You can find detailed examples for syntax and usage of scripts on the installation medium in the directory QBM\dvd\AddOn\SDK\ScriptSamples. |
To edit a script
To copy an existing script
This starts the Script Editor and opens the dialog box "Copy script".
Verify the following data and it necessary.
Old script name | Name of the copied script. |
Script | The name of the new script is made up of the prefix "CCC_" and the name of the old script. You can change the name. Label custom scripts with the prefix "CCC_". |
Script code | The script code from the original is copied over. If necessary, you can modify the script code of the script to copy beforehand. |
You might want to label scripts for overriding if there are limits to how much you can modify default scripts. Scripts, which can be overridden are labeled with the property "overridable".
|
NOTE: Only the default scripts that are supplied can be overriden. Custom scripts cannot be overridden because these are saved in the script class 'Custom scripts'. |
To override a script
The new script name is made up of the old script name. You can change the name.
|
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. |
Public overridable Function My_Function() as Boolean
'script code of the original version
End Function
Public overrides Function My_Function() as Boolean
'Custom script code
End Function
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
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 error" 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. |
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy