Script-Based Interface to CM Tools
When using a third-party tool, the CM operations available in the Rational Statemate Databank and Workarea are handled by external executable files. Statemate does not directly communicate with your CM tool. Instead, it provides a generic CM interface. You provide the files that map each operation in the Rational Statemate generic interface to some specific CM tool. For convenience, these files are referred to simply as scripts in this section. Statemate provides a sample implementation that you can copy. The flow of information between Statemate, the scripts, and the CM tool is as follows:
Since Rational Statemate simply issues requests to the operating system to execute files, these scripts can be implemented using whatever programming resources are available to you. For example, you can use the following:
● Scripts, written in an interpreted language such as Perl or C shell, that communicate with your CM tool through its command line interface.
● Programs, written in a compiled language such as C or C++, that communicate with your CM tool through its application programming interface.You must provide a script for each of the CM operations described in this section. You can name them and place them anywhere. However, you must also provide a file that maps the Rational Statemate CM operations to your scripts, as explained in the sections that follow.