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

A reference finder or dependency is a way to assist with link creation between objects in the CAST analysis.

A source set and target set are created as part of the examination of the dependency.

Here's an example of how this is configured in CAST-MS which resulted in the steps below:

More can be seen on this topic in the documentation here: 8.0.x:  CMS - Dependencies - Rules tab 

The logs generated by the task Run Reference Finder Analyzer  is listed below



CAST-MS log

CAST-MS log file

Below is a screenshot showing the steps run during an analysis.

Section of CAST-MS log file dealing with Run Reference pattern step are shown in the log below 

Starting Run Reference Pattern Task

INF: 2016-09-13 16:34:53:              starting Task Run reference pattern 'My Reference Pattern'

Starting Create Source Set 

INF: 2016-09-13 16:34:53:              starting Task Create  source set for My Reference Pattern

INF: 2016-09-13 16:34:54:              Task message: Number of objects selected : 8867

INF: 2016-09-13 16:34:54:              No associated log file

INF: 2016-09-13 16:34:54:              ending Task Create  source set for My Reference Pattern

Starting Create Target Set 

INF: 2016-09-13 16:34:54:              starting Task Create  target set for My Reference Pattern

INF: 2016-09-13 16:34:54:              Task message: Number of objects selected : 8867

INF: 2016-09-13 16:34:54:              No associated log file

INF: 2016-09-13 16:34:54:              ending Task Create  target set for My Reference Pattern

Starting Run Reference Pattern 

INF: 2016-09-13 16:34:54:              starting Task Run Reference Finder Analyzers "RP_My Reference Pattern_13984"

INF: 2016-09-13 16:34:54:              C:\Program Files\CAST\8.0/anarun.exe  -CONNECT_PROFILE('JMCE7440W7:2280 on CastStorageService.prod800_local') -RUN_RP(301,109451,'C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\LISA\bd1c4a0b868f4e9cabae9c7378ab898f\Scr13984\JobSettings.xml') -MANAGED(301) -SESSION_ID(109451) -LOG('C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\bd1c4a0b868f4e9cabae9c7378ab898f\RP_My Reference Pattern_13984-20160913163453.castlog',TRUNCATE) -LARGESTORAGE('C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0','C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0','bd1c4a0b868f4e9cabae9c7378ab898f/Scr13984') -LOGIN(,CASTCORP\JMC,) -APP(-NOGUI) -FINAL_UPDATE -NOPROGRESS -EXIT

INF: 2016-09-13 16:34:57:              About to run JOB_REFERENCE_FINDER_ANALYZER job 'RP_My Reference Pattern_13984'.

INF: 2016-09-13 16:35:08:                              Execution date=2016/09/13 21:35

INF: 2016-09-13 16:35:08:                              Execution duration=0 days, 00 hours, 00 mins, 11 secs

INF: 2016-09-13 16:35:08:                              Execution result=success

INF: 2016-09-13 16:35:09:              Loading ini file: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\AMRunResult109451.INI

INF: 2016-09-13 16:35:09:              Loading ini file: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\AMRunResult109451.INI

INF: 2016-09-13 16:35:09:              Task message: No Task message

INF: 2016-09-13 16:35:09:              Log file: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0\bd1c4a0b868f4e9cabae9c7378ab898f\RP_My Reference Pattern_13984-20160913163453.castlog

INF: 2016-09-13 16:35:09:              ending Task Run Reference Finder Analyzers "RP_My Reference Pattern_13984"

Starting Delete Source Set 

INF: 2016-09-13 16:35:09:              starting Task Delete  source set for My Reference Pattern

INF: 2016-09-13 16:35:09:              Task message: No Task message

INF: 2016-09-13 16:35:09:              No associated log file

INF: 2016-09-13 16:35:09:              ending Task Delete  source set for My Reference Pattern

Starting Delete Target Set 

INF: 2016-09-13 16:35:09:              starting Task Delete  target set for My Reference Pattern

INF: 2016-09-13 16:35:09:              Task message: No Task message

INF: 2016-09-13 16:35:09:              No associated log file

INF: 2016-09-13 16:35:09:              ending Task Delete  target set for My Reference Pattern

Ending Run Reference Pattern Task 

INF: 2016-09-13 16:35:09:              Task message: No Task message

INF: 2016-09-13 16:35:09:              No associated log file

INF: 2016-09-13 16:35:09:              ending Task Run reference pattern 'My Reference Pattern' 

RP log

RP_<Reference Pattern Name>_<uuid>-<DateTime>.castlog log file

Sample results of a reference pattern being run (results may vary depending on the results of the reference pattern):

Configuration Section

2016-09-13 16:34:56.135             Information     INTERNAL ; Body           64-bit environment

2016-09-13 16:34:56.135            Information     INTERNAL ; Body           LISA folder: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0

 2016-09-13 16:34:56.135            Information     INTERNAL ; Body           LTSA folder: C:\Users\JMC~1.CAS\AppData\Local\Temp\CAST\CAST\8.0

 2016-09-13 16:34:56.135            Information     INTERNAL ; Body           LSA relative folder: bd1c4a0b868f4e9cabae9c7378ab898f/Scr13984

 2016-09-13 16:34:56.135            Information     INTERNAL ; Body           Using Knowledge Base on schema prod800_local.

 2016-09-13 16:34:57.189            Information     INTERNAL ; Body           Registering extension com.castsoftware.rpg 1.0.3.

Meta Model Load

2016-09-13 16:34:57.541            Information     MODULMSG ; Body      Loading meta model from repository . . .

2016-09-13 16:34:58.241            Information     MODULMSG ; Body      Meta model loaded.

Reference Pattern Settings

 2016-09-13 16:34:58.241            Information     INTERNAL ; Body           RunAnalysis started

 2016-09-13 16:34:58.241            Information     INTERNAL ; Body           Reference Pattern

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Do not create links beween differents files : 0

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Match Case : 0

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Match whole word only : 0

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Match case : 0

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Code : 1

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Comments : 0

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           String Literals : 0

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Enable replacement : 0

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Replacement regular expression :

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Selected Languages

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Regular expression (Boost)

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                                           Expression : select

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Languages Filter : Don't filter on languages

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Link Type : Match

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Name Matching : Whole

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Match : Object Name

2016-09-13 16:34:58.241            Information     INTERNAL ; Body           Source

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Technology : J2EE

2016-09-13 16:34:58.241            Information     INTERNAL ; Body           Target

2016-09-13 16:34:58.241            Information     INTERNAL ; Body                           Technology : J2EE

2016-09-13 16:34:58.241            Information     INTERNAL ; Body           SESSION CONTEXT details: 301 ; 109451 = "webgoat"."RP_My Reference Pattern_13984"

Execution of Reference Pattern

2016-09-13 16:34:58.241                         1 ; Job execution

2016-09-13 16:34:58.241            Information     INTERNAL ; Job execution         About to run JOB_REFERENCE_FINDER_ANALYZER job 'RP_My Reference Pattern_13984'.

2016-09-13 16:34:58.241            Information     MODULMSG ; Job execution    Total physical memory: 8095 MB.

2016-09-13 16:35:08.758            Information     INTERNAL ; Job execution         New Job status

2016-09-13 16:35:08.758            Information     INTERNAL ; Job execution                         Execution date=2016/09/13 21:35

2016-09-13 16:35:08.758            Information     INTERNAL ; Job execution                         Execution duration=0 days, 00 hours, 00 mins, 11 secs

2016-09-13 16:35:08.758            Information     INTERNAL ; Job execution                         Execution result=success

2016-09-13 16:35:08.758                         MSGACCOUNT ; Summary        0 fatal error(s); 0 error(s); 0 warning(s); 6 information message(s).

2016-09-13 16:35:08.758                         1048575 ; Job execution

2016-09-13 16:35:08.843            Information     INTERNAL ; Body           Analysis completed 

 

 

 

  • No labels