Dependencies - Refined Target 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
- 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.
|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|| 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.
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:
|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:
|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: