Working with Views

Learning Objectives

In this lesson you will learn what views are and how you can create dynamic and generated views.

  • What is a view? And why do we make use of views?
  • Create a View
  • Setup a View
  • (Re)Use a View
  • Create a view consisting out of different models

Views: Why and What?

A View is a filter on a model which you can use as input for a visualization. On Dragon1 you have the option to draw static view diagrams like you are used to do in PowerPoint or Visio. You can also create unique generated and dynamic views.

The use of filtering data

In every organization there are a lot of entities. Thousands. And every entity has ten or more data attributes. For consistency reasons you want to create an enterprise model (a single model or a grouped set of models) containing all the entities of the organization.

Stakeholders, the people looking at your diagrams, do not always need all available information. They want to focus on certain information and take a decision with it. Therefore with views you have this option to filter out any unnecessary information (attributes values and entities).

Dynamic and Generated Views

Suppose you have business processes, software applications and server computers in your organization (every organization has that). These entities are all related with each other. If you have a change in your processes, applications or servers, you don't want to update manually all diagrams that contains the changed, new or deleted entities.

On Dragon1 you basically only have to change the entered entities data. Automatically the models, views and visualizations that make use of that data are updated. And if you do not want that to happen, you can switch off the auto update feature.

Below is an example enterprise model of processes supported by applications. We are going to create an example view where we filter out certain data from this model.

Create a View (Architecture Repository)

To create a view:

  • Select a folder in the Explorer Treeview
  • Click Insert View on the Button Bar
  • Select the added view in the Explorer Treeview
  • Click on Edit in the Button Bar. Now the New/Edit dialog appears
  • Enter a correct name in the name field
  • Click OK

Now you have entered a view.


Setup a View (Visual Designer)

For a View to work you have to set it up. You need at least a model. And you need to configure one or more rules that filter out data from the model.

To setup a view:

  • Select a view in the Explorer Treeview
  • Click on Edit Data in the Inspector Bar at the right. Now the New/Edit Properties dialog appears
  • Enter the properties as shown below in the example
  • Use opacity with a value between 0 and 100 for the filtered out items.

If you setup a view like this you see that it will filter out: nothing or some entities or all entities. This view (filtered model) you can use again as input for a visualization.

If you have saved as view and click on the item in the tree, automatically the View Data button will be clicked. To access the view properties, click on Clear Data.

See an example with screenshots of creating a Simple View here.

There are many options for the rule event, rule condition and rule actions field in a view. Read all options for views here on this page.

If you click on View Data, the following resulting view is shown:

(Re)Use a View

A view can be used more than once. You can use and reuse a view as much as you like. You can also combine views into one view or use more than one view in one visualization.

To use a view in a visualization:

  • Select a visualization in the Explorer Treeview
  • Click Edit on the Button Bar
  • Select the correct view for the visualization
  • Click OK

To use more than one view in a visualization:

  • Select a visualization in the Explorer Treeview
  • Click Edit on the Button Bar
  • Enter a semicolon separated list of view id's in the rule condition field on the Behavior TAB: ViewId=111;ViewId=432;ViewId=5363
  • Click OK

To combine views into one view:

  • Select a view in the Explorer Treeview
  • Click Edit on the Button Bar
  • Enter a semicolon separated list of view id's in the rule condition field on the Behavior TAB: ViewId=111;ViewId=432;ViewId=5363
  • Click OK

If you select the view in the Explorer Treeview, you will see a combined set of view data.

Saving Zoom factor and Position

You will have noticed that you sometimes have to zoom out and reposition your canvas with the scroll bars in order to see the view data.

You can also save that zoom factor and scroll bar position by pressing Save Visualization.