Attachmate Verastream Bridge Integrator Guide

 

Optimizing a Project

Because optimizing is a one-way transformation, before you proceed, save a backup of your project. You use the Optimize dialog box to reject changes you do not want, but, once you click the Accept button, you cannot cancel the operation.

How to use the Optimization dialog box

The Optimization dialog box presents a left panel that provides a listing of all screens and API calls in your project. The content of this panel is the same as the content in the API Calls view of the designer. The middle section of the Optimization dialog box includes the active (and educational) portions of the optimization process. The selection of optimization steps dictate how the project is optimized. The right side of the dialog box represents the outcome of the optimization process. By comparing the two Number of API Calls fields, you can see the quantity of calls saved by the optimization process.

When you accept the results, the contents of the right panel are moved into the left panel, allowing for an iterative process, designed to be instructive as well as useful.

Note The optimization process will bypass API calls that reference user-defined variables. You can implement these optimization steps later, in the code.
To optimize a project
  1. From the Actions menu, choose Optimize Project.

  2. From the Optimize Project dialog box, from the Select Screens for Optimization tree view, select only the screens with API calls you want to optimize.

    Selecting a screen automatically selects all of the API calls associated with that screen.

  3. From the Select Optimization Steps to Run list box, choose the steps you want to run.

    An optimization step represents a single unit of work that applies a given optimization rule to the selected set of API calls. You can highlight each step individually to see a description (and example) of what the step accomplishes in your project.

    Note There may be steps included that cannot be used. These are included so you can view the description and example. These optimization steps may be implemented in various ways, depending on your needs. You may want to consider implementing them yourself within your application code.
  4. Click Run Optimization..

    The Results of Running Optimization tree view displays your optimized project view. It may contain fewer API calls, and might contain fewer screens, too. The Number of API Calls field shows the number of calls included in the optimized project.

    To learn more about the results of the optimization, and see how additional parameters may have been added to the reduced set of API calls, right-click in the Selection view, select Show Parameters, then right-click in the Results view, and then select Show Parameters.

  5. Click Accept to accept the changes made during optimization.

    The content of the Results of Running Optimization tree view are moved to the Select Screens for Optimization tree view, which updates to represent the new content of your project.

  6. Click Close to return to the designer.

Related Topics
Bullet Project Optimization Overview
Bullet Recording Bridge Interactions
Bullet Creating Variables
  Attachmate