IBM Support

About Global Trigger Types

Troubleshooting


Problem

This technote explains why an IBM® Rational® ClearCase® trigger type cannot be designated as a global type, and provides a method for copying trigger types to multiple VOBs.

Resolving The Problem

By design, trigger types must be created locally in each VOB.

Trigger types, unlike other metadata types (labels, attributes, branches, elements, hyperlink), cannot be created as global resources in an Administrative VOB because they cannot properly traverse hyperlinks; which is how the Administrative VOBs connect to their client VOBs.

There is a method that will allow you to more easily generate a trigger type across multiple VOBs and allow trigger types to be used as a global resource like other metadata.


Copying a Trigger Type

While trigger types cannot be created as a global type in an AdminVOB, they can be copied from one VOB to another. Thus, you can store your trigger types in an Administrative VOB and copy them to the client VOBs when needed.

The cptype (copy type) command creates a new type object that is a copy of an existing type object. The existing and new objects can be in the same VOB, or in different VOBs. The copy can have the same name as the original only if you are making the copy in a different VOB.

The two objects, original and copy, do not retain any connection after you execute this command. They are merely two objects with the same properties, and perhaps even the same name. If there are any changes made to the trigger, such as by using cleartool mktrtype -replace, then those changes must be made manually to each copy of the trigger, or you must perform the copy again using the -replace switch; see the cptype reference page for more information.

In order to copy a trigger type from one VOB to another, the syntax would look something like this:

cleartool cptype trtype:NO_RMELEM@\admin_vob trtype:NO_RMELEM@\production_vob

Example:

To copy a trigger type from one VOB to another, the cptype command can be used as follows:

cleartool cptype trtype:NO_RMELEM@\source_vob


trtype:NO_RMELEM@\target_vob

Review the IBM Rational ClearCase Command Reference guide on the topic of cptype (cleartool man cptype) for more information.


Trigger Types in ClearCase MultiSite

Trigger types and triggers are not replicated; refer to IBM Rational ClearCase MultiSite Administrator's Guide for details on recreating a trigger type in a remote replica (or replica family).


[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"VOB","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2003.06.00;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"VOB","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"VOB","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21148828