NOTE: Before you compile a process, you should carry out a validity check of the process and process steps.
To test compiling a process, you can compile it locally in the Process Editor.
To compile a process for testing
-
In the Designer, select the process in the Process Orchestration category.
-
Start the Process Editor with the Edit process task.
-
Select Process > Compile from the menu.
Displaying errors
Error messages during compiling are displayed in Compiler errors. The source code is displayed if errors occur during compilation. This view is only for displaying the source code. It cannot be edited here.
-
Double-clicking the error message in the Compiler errors view takes you straight to the corresponding line in the process. Here, you can edit it.
-
Double-clicking the error message in the Compiler errors view takes you straight to the corresponding row if the source code view is activated.
-
If several users edit processes of the same base object, any error messages are also sent to other users. However, these cannot be changed by the current user.
If you have created, imported, or modified a process it must be committed to the One Identity Manager database and compiled. The process cannot be generated until it has been compiled.
To commit and compile a process
-
Commit the process to the One Identity Manager database. In the Designer, select the Database > Commit to database menu item and click Save.
-
Compile the database with the Database Compiler. In the Designer, select the Database > Compile database menu item.
For more information, see the One Identity Manager Operational Guide.
Process specific variables are local data spaces when a process is generated. They are used for determining values on a once-off basis within a pre-script, which can then be made further use of within the processes and their processes steps, for example, in generating conditions, server selection scripts or in the parameters.
NOTE: It is recommended only to set process specific variables in the pre-script and to have read access to them during further usage.
Pre-script syntax
Usage in the process and process step code sections
Process generation can be controlled using additional global variables, which are made available through the Session object. These variables are valid as long as the session is active. All environment variable and custom variables defined for the Session object can be used in addition to predefined variables. Custom global variables can be defined through scripts, methods, or customizers, for example, and used in the processes.
NOTE:
-
Global variables should only be used with read access in processes.
-
When a process is being handled, the generating pre-script is run first and then the generating condition is evaluated. It is recommended to evaluate global variables that are used in the generating condition in the pre-script as well. This can prevent unnecessary data access.
If a custom session variable is defined, it must be removed again afterward. Otherwise it remains for the rest of the session and, in certain circumstances, the wrong processes can be generated.
Example: Generating a process during a full synchronization
The process should only be generated for a full synchronization. The Session variable FullSync is used for this. This variable can take the True and False values. The variable is available to all processes that are generated within full synchronization.
The variable is queried in the pre-script for generating and the generating condition. This way, loading of unnecessary objects is already prevented by running the pre-script.
Generating pre-script:
If CBool(Session.Variables("FULLSYNC")) Then
values("Name1") = "value1"
values("Name2") = "value2"
...
End If
Generating condition:
Value = CBool(Session.Variables("FULLSYNC"))
In order to prevent bulk modifications, you can specify how long each process can remain in the Job queue.
Prerequisites
-
If the warning threshold is exceeded, a message is sent by email to a specified recipient. The prerequisites for using the notification system are a SMTP host set up for sending mail and the activation of the configuration parameter for mail notification. For more information about configuring the email notification, see the One Identity Manager Installation Guide.
-
In the Designer, check the Common | MailNotification | NotifyAboutWaitingJobs configuration parameter and enable this configuration parameter if necessary. If the configuration parameter is enabled, an email notification is sent if processes with the Overlimit status occur and a corresponding entry is created in the update server’s event log.
To define thresholds
-
In the Designer, select the process in the Process Orchestration category.
-
Start the Process Editor with the Edit process task.
-
Click on the element for the process in the process document.
-
In the Process properties view on the in the General tab, edit the following information.
-
Threshold value (warning): Enter the maximum number of these processes for a queue that can be present at the same time. A warning is sent if the number is exceeded. The One Identity Manager Service continues handling processes all the same.
-
Threshold value (disable): Enter the maximum number of these processes for a queue that can be present at the same time. If the disable threshold is exceeded, the affected processes in the Job queue are set to the Overlimit status. These processes are no longer collected by the One Identity Manager Service for processing and remain in the Job queue.
You can re-enable these processes in the Job Queue Info. For more information, see the One Identity Manager Process Monitoring and Troubleshooting Guide.
TIP: You can use the SDK_SetLimitationCount_in_Jobchain database script to initially fill the threshold for the lock. You can find an example of a configuration file on the installation medium in directory QBM\dvd\AddOn\SDK\SQLSamples.