Architecting and designing : SOA : Application landscape diagram : Build analytics
  
Build analytics
Simple query
A simple query evaluates only a single System Architect object property.
1 To create a simple query, click Tools > Application Landscape Tools > Analytics Builder Wizard.
2 Choose whether to create a new analytic or change an existing one.
3 Click Simple.
4 Specify the starting point diagram and symbol type for the Analytic.
The Analytic Builder Wizard is also be used for creating Analytics for other types of diagrams and is not restricted to just Application Landscape diagrams.
5 For this example, the Application Landscape is selected as the diagram type and Service Component as the symbol type, as shown below. A simple query will be created that tests whether a Service Component definition is supported by an Organizational Unit of the name “UK Operation.”
6 Select the property and test value, for example, “Support Business Units” of value “UK Operation” as shown below.
7 Choose a color for the analytic, that is, the colors that symbols that satisfy this query will have.
8 Give the analytic a concise and meaningful name, for example “Service Components Supported by Organizational Unit.”
9 Apply the analytic by dragging it into a diagram.
Advanced query
An advanced query evaluates multiple properties and relationships in the same manner that an Explorer Relationship Report operates. Creating the analytic involves the creation of an analytic complex query. An analytic complex query is always used within an analytic and never independently.
1 To create an advanced query, click Tools > Application Landscape Tools> Analytics Builder Wizard.
2 Choose whether to create a new analytic or change an existing one.
3 Click Advanced.
4 Specify the starting point diagram and symbol type for the analytic, for example select Application Landscape as the diagram type and Service as the symbol type.
5 Click Next to proceed to the dialog for creating a new analytic complex query or using an existing one.
6 Choose what you want to happen if the results of the query are empty, or it returns one or more items.
7 Click New to create the query, for example named “Services Supported By Apps On Servers Out of Support before 31/12/2010”.
(In this example, Servers are to be examined that support Applications that provide Services where the “Support End Date” for the Server occurs prior to “31st December 2010”.)
8 Click Edit Content.
Build the query, for example, so that a Service is “provided by Definitions” where the type is Application that is “used by Definitions” of the type Server.
Note An advanced query must involve at least one level of relationship between objects for it to be valid.
9 Add the properties and values being tested, for example against the Server definition entry set the “Server is supported? < - - Server is supported?” to “TRUE” and “Support End Date < - - Support End Date” to “31/12/2010”.
10 Click OK.
Note An analytic complex query is run against the identities of the objects populated in the diagram. The identities are fed into the query and the #DDIDS# is a placeholder that makes use of them. When you create an analytic complex query, #DDIDS# is added automatically, when editing the content, to the first object type in the query. In this example, you do not have to add the #DDIDS# statement: it is added automatically because the starting point for the query is the service definition that is in the diagram. If the query structure is reversed (that is, Server uses Application that provides Service), you have to manually add #DDIDS# at the Service definition level.
11 Click OK.
12 Choose a color for the analytic.
13 Give the analytic a concise and meaningful name, for example “Services Supported By Apps On Servers Out of Support before 31/12/2010.”
14 Apply the analytic by dragging it into a diagram.
See also
Modify analytic
Application landscape diagram