CQCC::TriggerBase - Class to provide generic services for triggers, including initialization, processing arguments and other services.
This class manages initialization for the integration by reading in the command line arguments; creating ClearCase and ClearQuest class instances through IOClassFactory(); and cleaning up and terminating the trigger session.
A subclass of this trigger is expected to provide the specific behavior for an application, such as TriggerCQCC.
SUPPORT POLICY: See TriggerCQCC.pm for the Rational Support Policy.
ClassInit()
TriggerInterface
REQUIRED
TESTMODE
Connect(system)
DispatchOperation()
Initialize()
LoadCache()
MenuDisplay(menuName, {[ initialChoice ]} )
A menu is a list consisting of a title message tag and one or more choice message tags which can be translated through the message catalog along with a set of arguments. For example, [Action_Help, ``main_menu''] might be displayed as ``3) Help for main_menu''. If the title or choice message tags are NOT message tag arrays then the literal value is shown instead of being looked up through the message tag.
When the user makes a selection, the menu gets back the message tag. The first tag value is expected to be a trigger method and that will be called with the remaining tag values as arguments, i.e. $obj->Action_Help(``main_menu''). This approach allows a subclass to redefine the menu by editing its definition or to override any of its activities by overriding the method that gets called back.
The optional initialChoice argument is used to automatically make an initial selection, calling the Dialog_SelectByQuery for example or attempting to automatically commit changes when ApplyToAll was called to process the remaining elements of a batch for example. Like other menu selection items, it expects a message tag.
new CQCC::TriggerBase()
Initialize()
method.
Op_classtest()
-op classtest CQCC::CCase,vobname,elemname
PreprocessArguments()
PrintState(option)
ProcessArguments()
SaveCache()