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. But 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. Now 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.

Create a View

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

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 in the Button Bar. Now the New/Edit dialog appears
  • Select the model in the dropdownlist at the bottom of the Identity TAB
  • Go to the Behavior TAB
  • Enter "onload" in the rule event field (without the quotes).
  • Enter the entity classes in the rule condition field you want to let through the filter, for instance: Entityclass=* or Entityclass=Process or Entitytype=Business or Entityid=12345
  • Enter "show(name)" in the rule action field (without the quotes).

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

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.

(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 now 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.