Creating multiple entry point adaptors

The adaptor templates provided by Build Forge are single-entry-point adaptors.

For single-entry-point adaptors, in the Management Console (Projects > Adaptors), you select the template name for the application and function that you want to run. For example, ClearCaseBaseline or ClearCaseByDate.

If you prefer you can create one adaptor template for ClearCase that contains multiple interfaces or functions for ClearCase. For a multiple-entry-point adaptor, you identify each interface by a name, called an entry point.

To create a multiple-entry-point adaptor:

  1. Create the adaptor template. To create the template, you have the option of using one of the provided templates as a model and modifying the XML as necessary. In the template, you must add the name attribute to the <interface> element to identify the entry point for each interface that you add to the template. The related syntax for the <interface> element is shown in the following example:
    <interface name="By Date" default="true">
    </interface>
  2. Create an adaptor with a unique name that does not have spaces and associate it with the adaptor template. See Creating an adaptor from a template.
  3. Add the adaptor to the project using an adaptor dot command or an adaptor link.
    • The following example uses the .source adaptor command to add the adaptor to a project step that calls the By Date interface function in the ClearCase adaptor:
      .source ClearCase "By Date"
    • To use an adaptor link to call a multiple-entry-point adaptor, take one of the following actions in the adaptor template to specify which interface function runs when the project runs:
      • Place the <interface> element definition for the function to run as the first <interface> element in the template file
      • Set the default attribute for the <interface> element to true (default="true") for the function to run

Feedback