Transition End Trigger
- Last Updated: February 11, 2026
- 3 minute read
- OpenEdge
- Version 13.0
- Documentation
OpenEdge Replication supports a post-transition trigger. The transition end trigger is a user-created script that is configured to run at the end of transition. Executing a transition end trigger gives the Database Administrator the opportunity to insert additional instructions at a controlled point in the transition, such as directing applications to re-connect to a new source database. The trigger is supported by fail-over transition, when a source and target switch roles, and recovery transition, when a source fails and a target transitions to be the source for the other target.
Configuring transition trigger
The transition end trigger is configurable. You can add the transition end
trigger property to the properties file of the source, target(s), or both. Indicate
that you want the transition end trigger to execute by adding the following line to
the [transition] section of your properties
file:
|
If not specified, the transition-end-trigger value is 0, indicating that no
trigger is to execute. If set to a value other than 0 or 1, or not properly
inserted in the [transition] section of the properties file, an
error is written to the dbname.repl.agent.lg
file.
If the transition-end-trigger is enabled on more than one database
involved in the transition process, then the trigger may be executed multiple times,
once for each participating database where it is enabled. Depending on your
configuration, the transition end trigger may involve one database (a source or a
target), two databases (one source plus a target), or three databases (one source
plus two targets).
The trigger file is not validated prior to transition.
Transition trigger
The transition trigger is a script with very specific requirements. The file must be:
- Named transProc on Unix or
transProc.batin Windows. - Located in the target database directory, the directory containing the dbname.db file
- Set as "executable" by your operating system
The trigger file has five input parameters, in the following order:
- Current database name (the database the trigger is called from after transition)
- Transition status (success/failure)
- Database name (new source database name)
- Host name (host for new source database)
- Port (port name or number for database broker)
Once configured to execute, the transition end trigger executes regardless of the success or failure of the replication transition, by spawning a new process at the end of transition. Within the trigger code, you can use the transition status to determine execution paths based on the success or failure of transition.
The trigger file is not validated prior to transition. If the transProc file does not exist in the expected directory, or cannot be executed, an error message is written to the dbname.lg file.
If the trigger script is not found, the following error message is written:
|
If the trigger script is not executable, or you do not have permission, the following error message is written:
|
If the trigger script successfully executes, the following messages are written:
|
Replication Monitor
You can verify the setting of transition-end-trigger property in the
Replication Monitor.
For the server, select S for the Replication server status screen. The lower portion of the screen, with an enabled trigger, is shown below:
|
For an agent, select A for the Replication agent status screen. The lower portion of the screen, with an enabled trigger, is shown below:
|