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

This page provide you the information on how to use the tool in case the Reference Pattern search string does not work in CMS.

Applicable in CAST Version
Release
Yes/No
8.3.x(tick) 
8.2.x(tick)  
Applicable RDBMS
RDBMS
Yes/No
Oracle Server(error)  
Microsoft SQL Server(error)  
CSS(tick)
CSS1(error)  
Action Plan

The Tool is only applicable to technology where the source code is uploaded (to be visible in Dashboard).

CASE 1: Generic tool

The constraints are the following :

  1. Analysis must be run before.
  2. Sources have to be uploaded (during analysis, or using the upload sources action, or run snapshot).
  3. No filter on comments, embeded code, ...
  4. No filter on tehcnology (for java, ...).
  5. Available for CSS only.


Below are the steps to run the tool:

  1. Create an Update Cast System View tool.
  2. Create an Update CAST Knowledge Base.
  3. Copy the attached script (Custom Ref Finder Tool Template.sql) in the "Update CAST Knowledge Base" tools after analysis. If you need to reduce the scope of the caller or the called objects, you must modify the script between <<SPECIFIC PART>> and <<END SPECIFIC PART>> to fit with your needs.
  4. Run the Cast System View tool.
  5. Run the "Update CAST Knowledge Base" tools.

Check in Enlighten if the links are created using the attached template. Custom Ref Finder Tool Template.sql

Note: Please do refer the attached example. Custom Ref Finder Tool Example.sql

Case 2: Specific KB update tool for find links between JSP objects having the pattern id='xxxx' and JS files having pattern $('#xxxx').

Here is a specific example of a variant of the process used above to find links between JSP objects having the pattern id='xxxx' and JS files having pattern $('#xxxx').

The constraints for this script are:

  1. Analysis must be run before.
  2. Sources have to be uploaded (during analysis, or using the upload sources action, or run snapshot).
  3. Available for CSS only.

Below are the steps to run the tool:

  1. Create an Update Cast System View tool.
  2. Create an Update CAST Knowledge Base.
  3. Copy the attached script (Custom Ref Finder Tool Template.sql) in the "Update CAST Knowledge Base" tools after analysis.
  4. Run the Cast System View tool.
  5. Run the "Update CAST Knowledge Base" tools.

The script can be found here: KBUPDATE TOOL - Search string.sql

Notes/comments

Ticket  # 5319, 10105

Related Pages





  • No labels