Page tree
Skip to end of metadata
Go to start of metadata

Dependencies - Refined Target tab


This tab is only visible in Advanced or Expert Audience mode. It allows you to manage Refined Targets that can be used in the Rules tab.

As explained in the Rules tab, CAST will discover and create dependencies between Analysis Units or Technologies to ensure that links between objects (for example client side code to database code) are recorded in the CAST Analysis Service.

Dependencies that are a created by CAST will be either between Analysis Units or between Technologies (where no dependencies between Analysis Units have been discovered) and this level of dependency is generally quite broad. As such, there is a possibility that incorrect links may be traced if a string happens to match a given name even if it is not logically related to the corresponding object.

Take for example the situation where CAST has created a default dependency Rule (see Dependencies - Rules tab) between the VB Technology in your Application and the MS SQL Server Technology in your Application. In some situations, this dependency will be too broad, and may give rise to the creation of multiple false links between the Source and Target.

If this is is the case, you can "refine" or "filter" the Target so that only specific components (for example only SQL Tables) are considered as the Target, rather than the source code in an Analysis Unit or in an entire Technology within an Application.

You can use the following items to refine the target:

  • Existing Analysis Units
  • Specific object types
  • Object Names, Object Full Name and Object Path

Notes

  • Note that you must either run an analysis or generate a snapshot before using this option - a refined target functions with objects that have been analyzed and saved to the Analysis Service.
  • You can combine multiple items in a target - for example, you can select a specific Analysis Unit and also choose to filter on specific Object Types. This will mean that only those specific Object Type in the selected Analysis Unit will be part of the Refined Target.
Available options
Use this option to add a new Refined Target =. The Refined Target dialog box will then be displayed. This is explained below.
Use this option to edit an existing Refined Target - select it in the list first.
Use this option to remove an existing Refined Target - select it in the list first.

Note that a Refined Target may already be in use in a Dependency rule in the , as such removing the Refined Target will also remove the rule.

Refined Target dialog box

When you add a new Refined Target either in this tab or via the Dependencies - Rules tab, then the Refined Target dialog box will be displayed, enabling you to configure the target:

Name Enter a name for your Refined Target. If you are creating a Refined Target via the Dependencies - Rules tab, then the CAST Management Studio will suggest a name for you, based on the existing Target.
Description Use this field to enter a description to help explain what the Refined Target is designed to do.
Content Overview Use this button to "test" what objects will form the Refined Target. A dialog box will be displayed showing the results of the test:

Technology Selection

Technology This option enables you to select a Technology that will form the basis of the Refined Target. Clicking Select will display a dialog box containing a list of all the Technologies that are part of the current Application:

Choose the required Technology and click OK.

Notes

  • f you are creating a Refined Target via the Dependencies - Rules tab, then the Technology will already be defined for you.

Analysis Units Selection

Filter Mode This option enables you to choose whether the Refined Target will be limited to specific Analysis Units in your Application:

If you choose the Filter on Analysis Units option, the section below will activate, enabling you to add an Analysis Unit or Units:

Use this option to choose the Analysis Units you want to include in the Refined Target:

Select the Analysis Unit(s) and click OK - they will then be visible in the table in the editor.

Use this option to edit the Analysis Unit - the corresponding Analysis Unit editor will be displayed.
Use this option to remove an Analysis Unit from the Refined Target filter.

Type Selection

Filter Mode This option enables you to choose whether the Refined Target will be limited to specific Object Types in your Application:

If you choose the Filter on Object Types option, the section below will activate, enabling you to add Object Types to the filter:

Use this option to choose the Object Types you want to include in the Refined Target. All possible objects will be displayed for the Technology selected in the Technology Section described above:

Select the object type(s) you want to include in the

Use this option to remove a selected Object Type from the Refined Target filter.

Name Selection

Filter Mode This option enables you to choose whether the Refined Target will be limited to specific Object Names, Object Full Names and Object Paths in your Application. The filters can specify Regular Expressions (when the MATCH operator is selected).

If you choose the Filter on Object Names option, the section below will activate, enabling you to add specific Regular Expression pattern to the filter:

Use this option to create a new filter rule based on a Regular Expression patterns. A new default rule will be displayed:

  • Pattern > Enter the Regular Expression pattern in this field
  • Field > Choose whether the pattern should match Object Names, Object Full Names or Object Paths
  • Operator > Select the most appropriate option - EQUALS, LIKE or MATCH - if you are using complex Boost based Perl Regular Expression patterns, choose the MATCH option.

Notes

  • Remember that if you are using other filter types in conjunction with Name Selection, the Name Selection will be based on those other filters. In other words, if you have chosen to filter on SQL tables and views (for example) from the Type Selection, then the Name Selection will only function on these objects and will ignore others.
Use this option to remove a selected Object Type from the Refined Target filter.

CAST Website

  • No labels