On this page

In a published project, you can display diagrams, images, and paragraphs using specific Call Behavior Actions. This page explains how to access and modify the actions of the predefined Entire Model template, but you can work with the copies of other predefined templates a similar way.

Important

DO NOT change predefined templates. If you want to customize a predefined template, first create the copy of this template with a different name, and then modify the newly created template file.


Displaying diagrams

The ExposeDiagram Call Behavior Action displayed in the ElementSpecificationLooper diagram is used to collect and display diagrams of a model. In the Entire Model template, this action owns several other actions required to filter and sort diagrams before presenting them.
 

To open the ElementSpecificationLooper diagram of the Entire Model template


  1. Open the Requirements ViewPoint diagram.

    1. Click the Diagrams tab in the model browser of an open template.
    2. Expand the Collaborator View Diagrams package and double-click the Entire_model_template diagram.
    3. In the open diagram, double-click the element with the «Viewpoint» stereotype.
  2. Double-click the ElementSpecification Call Behavior Action.

  3. In the ElementSpecification diagram, double-click the ElementSpecificationLooper Call Behavior Action.

The ElementSpecificationLooper diagram opens. 


Structured Activity Node with the ExposeDiagram Call Behavior Action displayed in the ElementSpecificationLooper diagram of the Entire Model template.

Displaying images

In the ExposeDiagram diagram, the Call Behavior Action with the «Image» stereotype displays images, diagrams, and tables that are created in your modeling tool.


How to open the ExposeDiagram diagram of the Entire Model template


  1. Open the Requirements ViewPoint diagram.

    1. Click the Diagrams tab in the model browser of an open template.
    2. Expand the Collaborator View Diagrams package and double-click the Entire_model_template diagram.
    3. In the open diagram, double-click the element with the «Viewpoint» stereotype.
  2. Double-click the ElementSpecification Call Behavior Action.

  3. In the ElementSpecification diagram, double-click the ElementSpecificationLooper Call Behavior Action.
  4. In the ElementSpecificationLooper diagram, double-click the ExposeDiagram Call Behavior Action as highlighted in figure above.

The ExposeDiagram diagram opens. In the following figure, you can see how actions displayed on this diagram represent model elements on the web.


Example of how the Call Behavior Action with the «Image» stereotype represents an image on the web.

If the Navigation Enabled property of the Call Behavior Action with the «Image» stereotype is set as true, there is a hyperlink shown at the bottom of every image as illustrated in figure above. Clicking a hyperlink opens the project under consideration in your modeling tool and selects the appropriate element. And if this project is not accessible in your computer, you can right-click the hyperlink and copy it to the clipboard for later use. 


Displaying 
paragraphs

The Call Behavior Action with the «Paragraph» stereotype is used to display paragraphs in a published project. For example, this action can be used if there are elements in your project with defined Documentation which you want to represent as a paragraph.

The main property of this Call Behavior Action:

  • Property Value - defines the content of the paragraph displayed in a published project. For example, if you want paragraphs to contain the Documentation of model elements, the value of this property should be QPROP:Element:Documentation, and if you want them to contain element titles, the value should be QPROP:Element:Title.
     

The Entire Model template does not have the Call Behavior Action with the «Paragraph» stereotype, but the following figure shows an example of how it can be used in this particular template.


 Example of the Call Behavior Action with the «Paragraph» stereotype in the ElementSpecificationLopper diagram.

If your published project has paragraphs, you can choose to display the hyperlink icons to the related elements of a model. Clicking a hyperlink icon opens the project under consideration in your modeling tool, and selects an appropriate element. If this project is not accessible in your computer, you can right-click the icon and copy the hyperlink to the clipboard for later use.

The following figure shows paragraph hyperlink icons in a published project:


A published model displaying paragraph links to model editor.

To show paragraph hyperlinks to a modeling tool


  1. Click  on the app bar of a published project.
  2. From the menu, select Show Paragraph Links to Model Editor.


If the published project you are browsing has paragraphs, hyperlink icons are now displayed next to each paragraph.

Sample project template

The template file used as an example on this page is the copy of the predefined Entire Model template that comes with Cameo Collaborator Publisher plugin. To access the template file do one of the following: