8.5.1. Layouts for Architecture Analysis

8.5.1.1. Background

Architecture Import and Check is configured for a project.

8.5.1.2. What can be configured?

You can specify a layout for the architecture view in gravis and use this layout when inspecting the architecture check’s result.

8.5.1.3. What needs to be done?

  1. Run your architecture_check once, e.g. by running the Analysis in CI.

  2. While the analysis is running, define a directory where the layouts shall be stored. This directory should be distributed to all developers who need to open the architecture check results or who need to work on the architecture model. E.g.: choose a subdirectory of the project configuration and store it in the VCS.

  3. Define a way for all developers to configure the config option Layout_Directory to this directory:

  1. configure this directory in the User Profile of each developer in $HOME/.bauhaus,

  2. or configure this directory a configuration layer, either in the project configuration or in a company/department-wide configuration layer.

Example configuration of a Layout_Directory for :tool:`gravis`.
  1. Download the result RFG from the WebUI. Please note that the file name of this RFG is used to identify the layout directory. If you need to change the name of the file, the layout-lookup will fail.

  2. Open gravis with the option Layout_Directory configured to the directory and load the RFG

  3. Open the Architecture view

  4. If available, load a layout file that was stored when the initial layout was created (right-click on the background, choose Layout storage->Import layout…). Alternatively, expand and rearrange the nodes to define the desired standard layout.

  5. Right-click on the background to open a context menu, choose Layout storage->Create new layout to store the layout in the defined folder

  6. Checkin/Update the layout in your VCS

  7. When you download the RFG and set the Layout_Directory correctly, the Architecture view will be displayed with this layout. If you run the architecture check from gravis, also the result view will be displayed with this layout.