Skip to content

Commit 20c68fd

Browse files
Giu PlataniaGiu Platania
authored andcommitted
finalized checks update for version 6.x
1 parent 02ae941 commit 20c68fd

13 files changed

+130
-45
lines changed

Checks/checks/PIM/Application Architecture/dApplicationComponent - configured by - dSystem.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Check>
33
<CheckId>015</CheckId>
4-
<CheckDescription>System configured by ApplicationComponent </CheckDescription>
4+
<CheckDescription>System configuring an Application Component </CheckDescription>
55
<QueryToFindElements>
66
<Main>SELECT DISTINCT o1.ea_guid AS ItemGuid
77
FROM ((((((t_object as o1
@@ -72,12 +72,12 @@ INNER JOIN t_connector as connector ON o.Object_ID = connector.Start_Object_ID
7272
INNER JOIN t_object AS o2 ON connector.End_Object_ID = o2.Object_ID
7373
WHERE o.Stereotype = 'dSystem'
7474
AND o2.Stereotype = 'dApplicationComponent'
75-
AND connector.Stereotype= 'configured by'
75+
AND connector.Stereotype= 'dApplicationconfiguredbySystemConfiguration'
7676
)</Main>
7777
<Parameters></Parameters>
7878
</QueryToCheckFoundElements>
7979
<WarningType>Warning</WarningType>
80-
<Rationale>a 'dApplicationComponent' element should be connected to a 'dSystem' element by a 'configured by' Connector</Rationale>
80+
<Rationale>a 'dApplicationComponent' element should be configured by a 'dSystem' element by a 'configured by' Connector</Rationale>
8181
<ProposedSolution>Create missing connection</ProposedSolution>
8282
<HelpUrl>https://github.com/FreeTAKTeam/DigitalArchitectureFramework</HelpUrl>
8383
</Check>

Checks/checks/PIM/Application Architecture/dController - Controlls - dModelClass.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ INNER JOIN t_connector as connector ON o.Object_ID = connector.Start_Object_ID
7272
INNER JOIN t_object AS o2 ON connector.End_Object_ID = o2.Object_ID
7373
WHERE o.Stereotype = 'dController'
7474
AND o2.Stereotype = 'dModelClass'
75-
AND connector.Stereotype= 'Controlls'
75+
AND connector.Stereotype= 'dControllerControllsModel'
7676
)</Main>
7777
<Parameters></Parameters>
7878
</QueryToCheckFoundElements>

Checks/checks/PIM/Application Architecture/dController - Governs - dView.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ INNER JOIN t_connector as connector ON o.Object_ID = connector.Start_Object_ID
7272
INNER JOIN t_object AS o2 ON connector.End_Object_ID = o2.Object_ID
7373
WHERE o.Stereotype = 'dController'
7474
AND o2.Stereotype = 'dView'
75-
AND connector.Stereotype= 'Governs'
75+
AND connector.Stereotype= 'dControllerGovernsView'
7676
)</Main>
7777
<Parameters></Parameters>
7878
</QueryToCheckFoundElements>

Checks/checks/PIM/Application Architecture/dController - isImplementedBy - dBusinessUseCase.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ INNER JOIN t_connector as connector ON o.Object_ID = connector.Start_Object_ID
7272
INNER JOIN t_object AS o2 ON connector.End_Object_ID = o2.Object_ID
7373
WHERE o.Stereotype = 'dController'
7474
AND o2.Stereotype = 'dBusinessUseCase'
75-
AND connector.Stereotype= 'isImplementedBy'
75+
AND connector.Stereotype= 'dUseCaseisImplementedByController'
7676
)</Main>
7777
<Parameters></Parameters>
7878
</QueryToCheckFoundElements>

Checks/checks/PIM/Application Architecture/dPhysicalService - Implements - dBusinessService.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ INNER JOIN t_connector as connector ON o.Object_ID = connector.Start_Object_ID
7272
INNER JOIN t_object AS o2 ON connector.End_Object_ID = o2.Object_ID
7373
WHERE o.Stereotype = 'dPhysicalService'
7474
AND o2.Stereotype = 'dBusinessService'
75-
AND connector.Stereotype= 'Implements'
75+
AND connector.Stereotype= 'dPhysicalServiceImplementsBusinessService'
7676
)</Main>
7777
<Parameters></Parameters>
7878
</QueryToCheckFoundElements>

Checks/checks/PIM/Business Architecture/Use Cases that are not in exactly one Boundary.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ LEFT JOIN
1919
LEFT JOIN
2020
t_package Package_p5 ON Package_p5.Package_id = Package_p4.parent_id
2121
WHERE
22-
o.Object_Type = 'UseCase'
23-
AND o.Stereotype = 'dBusinessUseCase' </Main>
22+
o.Stereotype = 'dBusinessUseCase' </Main>
2423
<Filters>
2524
<Change>
2625
AND o.ea_guid in (
@@ -88,9 +87,7 @@ SELECT o.ea_guid
8887
INNER JOIN t_diagram d ON d.Diagram_ID = do.Diagram_ID
8988
INNER JOIN t_diagramobjects do2 ON do2.Diagram_ID = d.Diagram_ID
9089
INNER JOIN t_object o2 ON o2.Object_ID = do2.Object_ID
91-
WHERE o.Object_Type = 'UseCase'
92-
AND d.Diagram_Type = 'Use Case'
93-
AND o.Stereotype = 'dBusinessUseCase'
90+
WHERE o.Stereotype = 'dBusinessUseCase'
9491
AND o2.Object_Type = 'Boundary'
9592
AND do2.RectRight &gt;= do.RectRight
9693
AND do2.RectLeft &lt;= do.RectLeft

Checks/checks/PIM/Business Architecture/dBusinessUseCase - is realized by Use Case - dFeature.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Check>
33
<CheckId>001</CheckId>
4-
<CheckDescription>Feature is realized by Business Use Case </CheckDescription>
4+
<CheckDescription> Business Use Case is is realizing Feature</CheckDescription>
55
<QueryToFindElements>
66
<Main>SELECT DISTINCT o1.ea_guid AS ItemGuid
77
FROM ((((((t_object as o1
@@ -72,7 +72,7 @@ INNER JOIN t_connector as connector ON o.Object_ID = connector.Start_Object_ID
7272
INNER JOIN t_object AS o2 ON connector.End_Object_ID = o2.Object_ID
7373
WHERE o.Stereotype = 'dBusinessUseCase'
7474
AND o2.Stereotype = 'dFeature'
75-
AND connector.Stereotype= 'is realized by Use Case'
75+
AND connector.Stereotype= 'dFeatureIsRealizedByUseCase'
7676
)</Main>
7777
<Parameters></Parameters>
7878
</QueryToCheckFoundElements>

Checks/checks/PIM/Business Architecture/dBusinessUseCase - isDescribedBy - dBusinessService.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ INNER JOIN t_connector as connector ON o.Object_ID = connector.Start_Object_ID
7272
INNER JOIN t_object AS o2 ON connector.End_Object_ID = o2.Object_ID
7373
WHERE o.Stereotype = 'dBusinessUseCase'
7474
AND o2.Stereotype = 'dBusinessService'
75-
AND connector.Stereotype= 'isDescribedBy'
75+
AND connector.Stereotype= 'dBizServIsDescribedByUseCase'
7676
)</Main>
7777
<Parameters></Parameters>
7878
</QueryToCheckFoundElements>

Checks/checks/PIM/Technology Architecture/dDeploymentNode - isPhysicallyHostedBy - dApplicationComponent.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ INNER JOIN t_connector as connector ON o.Object_ID = connector.Start_Object_ID
7272
INNER JOIN t_object AS o2 ON connector.End_Object_ID = o2.Object_ID
7373
WHERE o.Stereotype = 'dDeploymentNode'
7474
AND o2.Stereotype = 'dApplicationComponent'
75-
AND connector.Stereotype= 'isPhysicallyHostedBy'
75+
AND connector.Stereotype= 'dApplicationIRunsInNode'
7676
)</Main>
7777
<Parameters></Parameters>
7878
</QueryToCheckFoundElements>

Checks/checks/PSM/Data Architecture/06 - SID without description.xml

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Check>
33
<CheckId>026</CheckId>
4-
<CheckDescription>Model Classes without Description</CheckDescription>
4+
<CheckDescription>Attribute has no documentation</CheckDescription>
55
<QueryToFindElements>
66
<Main>
7-
SELECT o.ea_guid AS ItemGuid
8-
FROM ((((((t_object o
7+
SELECT a.ea_guid AS ItemGuid
8+
FROM ((((((( t_attribute a
9+
inner join t_object o on o.Object_ID = a.Object_ID)
910
INNER JOIN t_package p ON p.Package_ID = o.Package_ID)
1011
LEFT JOIN t_package Package_p1 ON Package_p1.Package_ID = p.Parent_ID)
1112
LEFT JOIN t_package Package_p2 ON Package_p2.Package_ID = Package_p1.Parent_ID)
1213
LEFT JOIN t_package Package_p3 ON Package_p3.Package_ID = Package_p2.Parent_ID)
1314
LEFT JOIN t_package Package_p4 ON Package_p4.Package_ID = Package_p3.Parent_ID)
1415
LEFT JOIN t_package Package_p5 ON Package_p5.Package_ID = Package_p4.Parent_ID)
15-
WHERE o.object_type = 'Class'
16-
AND o.StereoType = 'dModelClass'
16+
17+
WHERE IsOrdered = '0'
1718
</Main>
1819
<Filters>
1920
<Change>
@@ -55,31 +56,35 @@ AND o.StereoType = 'dModelClass'
5556
</Filters>
5657
</QueryToFindElements>
5758
<QueryToCheckFoundElements>
58-
<Main>
59-
SELECT o.Name AS ItemName
60-
, 'object' as ItemType
61-
, o.ea_guid AS ItemGuid
59+
<Main>SELECT a.Name AS ItemName
60+
, 'Attribute' as ItemType
61+
, a.ea_guid AS ItemGuid
6262
, o.Object_Type AS ElementType
63-
, o.StereoType AS ElementStereotype
63+
, a.StereoType AS ElementStereotype
6464
, p.Name AS PackageName
65-
, Package_p1.Name AS PackageParentLevel1
66-
, Package_p2.Name AS PackageParentLevel2
67-
, Package_p3.Name AS PackageParentLevel3
68-
, Package_p4.Name AS PackageParentLevel4
69-
, Package_p5.Name AS PackageParentLevel5
70-
FROM ((((((t_object o
65+
, package_p1.Name AS PackageParentLevel1
66+
, package_p2.Name AS PackageParentLevel2
67+
, package_p3.Name AS PackageParentLevel3
68+
, package_p4.Name AS PackageParentLevel4
69+
, package_p5.Name AS PackageParentLevel5
70+
FROM (((((((t_attribute a
71+
INNER JOIN t_object o on o.Object_ID = a.Object_ID)
7172
INNER JOIN t_package p ON p.Package_ID = o.Package_ID)
72-
LEFT JOIN t_package Package_p1 ON Package_p1.Package_ID = p.Parent_ID)
73-
LEFT JOIN t_package Package_p2 ON Package_p2.Package_ID = Package_p1.Parent_ID)
74-
LEFT JOIN t_package Package_p3 ON Package_p3.Package_ID = Package_p2.Parent_ID)
75-
LEFT JOIN t_package Package_p4 ON Package_p4.Package_ID = Package_p3.Parent_ID)
76-
LEFT JOIN t_package Package_p5 ON Package_p5.Package_ID = Package_p4.Parent_ID)
77-
WHERE o.ea_guid in (#ElementGuids#)
78-
AND o.note IS NULL
73+
LEFT JOIN t_package package_p1 ON package_p1.package_ID = p.Parent_ID)
74+
LEFT JOIN t_package package_p2 ON package_p2.package_ID = package_p1.Parent_ID)
75+
LEFT JOIN t_package package_p3 ON package_p3.package_ID = package_p2.Parent_ID)
76+
LEFT JOIN t_package package_p4 on package_p4.package_ID = package_p3.Parent_ID)
77+
LEFT JOIN t_package package_p5 on package_p5.package_ID = package_p4.Parent_ID)
78+
WHERE a.ea_guid in (#ElementGuids#)
79+
AND a.ea_guid IN (
80+
SELECT a1.ea_guid
81+
FROM t_attribute AS a1
82+
where a1.Notes IS NULL
83+
)
7984
</Main>
8085
<Parameters></Parameters>
8186
</QueryToCheckFoundElements>
82-
<WarningType>Error</WarningType>
83-
<Rationale>All Model Classes must have a Description.</Rationale>
87+
<WarningType>Warning</WarningType>
88+
<Rationale>All Attribute should have a Description.</Rationale>
8489
<ProposedSolution>Add a short description to the entity according to the modelling standard</ProposedSolution>
8590
</Check>

0 commit comments

Comments
 (0)