Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand

Right click blank space in the Layers and Sets window and choose New Set:

Image Modified

Give the new set a name:

Drag the set into the Main window:

Click to enlarge

Image Modified

Define the content for the set: in this example we will re-use the Data Set in the default Violations set, therefore we just need to define a block that matches all Stored Procedures. The easiest way to do this is to drag the object type from the Types and Properties window:

Click to enlarge

Image Modified

Finally, we need to ensure that the Violations set re-uses the Data set through a "caller-of" block The easiest way to do this is to drag the Data set from the Layers and Sets window and drop it in the "All objects matching" block that will already be present in the Violations set:

Image Modified

...and then choose the "caller-of" block when prompted, since the check we want to perform is Java Methods accessing Stored Procedures:

Image Modified

...choose the type of caller you require - in this example we are choosing a simple "Call" type link between Java Methods and Stored Procedures. We have left the Depth Level at the default value "1":

Image Modified

...to give you this configuration:

Click to enlarge

Image Modified

Info

Note that the Violations set now uses an AND conjunction to define the objects that can be returned as violation:

All objects matching:

  • Member of set Scope (i.e. all Java Methods)
  • AND
  • Caller of objects matching this condition using Call links (i.e. Stored Procedures)

In other words, only Java Methods that call a Stored Procedure via a Call link.


...

Expand

Use the Action > Compute all content menu option. If you are not already connected to a CAST Storage Service/RDBMS postgreSQL instance on which your CAST AIP schemas are hosted (the schemas that contain your Application analysis results), you will be prompted to connect using the CAST Management Studio Database Connection Manager which will offer you the option to connect with one of your existing CAST Management Studio connection profiles:

Image Modified

Select the connection your require and click connect. If your current workstation does not have any CAST Management Studio connection profiles stored on it (i.e. CAST Management Studio has never been installed/run) then you can use the Quick Connection button to define a temporary connection. See CAST Architecture Checker - Connect and select application for more information.

Once connected, select the Application that you want to use to check your Quality Rule Model:

Image RemovedImage Added

CAST Architecture Checker will now connect and retrieve the required data. Results are displayed with a numerical indication in the title bar of your Sets. This number refers to the number of objects that exactly match the selection criteria defined for your Set:

Click to enlarge

Image Modified

In this example we have the following details

  • The two custom sets match the following number of objects:
    • Java Methods = 78
    • Stored Procedures = 34
  • The two default sets match the following number of objects:
    • Scope = 78 (same as the Java Methods custom set)
    • Violations = 2

Therefore in this model we have 2 objects that are classed as violating the model: two Java Methods that directly call a database Stored Procedure.

...