Create diagram profile
You can create profiles to extend the metamodel in such a way that you can define custom diagrams.
Below is an example of how to create the specified profile and how it is used. Of course, individual steps in this description are omitted if you have already completed them as part of other activities, e. g., generating the UML metamodel in the current database. To be more precise, you specify that the Symbols bar offers only the Extended class, Constraint, and Association node and edge symbols for modeling in your diagram.
The description assumes that you generate the UML metamodel in the original language as recommended. This generates the names in English.
.
In the Explorer tree, right-click the name of the relevant database and select Log in with options. The Login Wizard opens.
Click in the Filter box on the down arrow and select the relevant method filter.
Click the down arrow to get to the Language box, and select the relevant database language.
Click Finish.
.
Open the Explorer tab and activate the Explorer tree.
Create a new group in the relevant database and save.
Right-click the group and select Generate UML metamodels. The Generate UML metamodels dialog opens.
Specify which language you want to use for the metamodel elements by enabling the relevant option.
Click OK.
.
In the Explorer tree, right-click the group in which you want to create a new group.
Click New model element >
Group.Enter a name.
Press Enter.
.
Right-click the group in the Explorer tree.
Click New model element.
Click Profile. The UML top-level element is created and its name is selected for overwriting.
Enter a name.
Press Enter.
.
In the Explorer tree, right-click Diagram profile and select Properties.
Click Applied profiles on the Selection tab.
Click the
Apply profiles button. The Apply profiles dialog opens.Enable the check box for the OMF Extension Profile.
Click OK. The dialog closes and the profile is applied.
Click OK. The Properties dialog closes.
.
In the Explorer tree, right-click the required profile.
Click New diagram >
Profile diagram. The profile diagram is created and the name is selected for overwriting.Enter a name.
Press Enter. The profile diagram is created and opens.
Click the required element in the Explorer tree and hold down the mouse button.
Drag the mouse pointer to the position in the diagram at which you want to place the element.
Release the mouse button. A presentation of the element is created in the diagram.
.
In the Explorer tree of the Navigation bar open the group in which you have generated the UML metamodel and drag the UML [Metamodel] object next to the placed profile in the diagram.
Draw the Meta model reference edge from the Diagram profile profile to the UML object.
Place a stereotype from the Symbols bar in the Diagram profile diagram and name it Extended class. If the bar does not include the object, insert it in the bar.
Place a class next to the stereotype.
Enter cla as the name and click
Find objects in the database. The Select object dialog opens.Click Start search. As the search result, you will see the Class object with the Metaclass type, which you created by creating the UML metamodel.
Select the Class object.
Click OK. The placed class is replaced with the metaclass.
Draw the Extension edge from the Extended class stereotype to the Class object.
Place a DiagramStereotype from the toolbar in the Diagram profile diagram and name it Extended class diagram.
Place an object of the Component type from the toolbar next to the diagram stereotype.
Enter cla as the name and click
Find objects in the database. The Select object dialog opens.Click Start search. As the search result, you will see the Class diagram object with the MetaDiagram type, which you created by creating the UML metamodel.
Select the Class diagram object.
Click OK. The placed component is replaced with the meta diagram.
Draw the Extension edge from the Extended class diagram object to the Class diagram object.
.
Double-click the Extended class diagram DiagramStereotype. The Properties dialog opens.
Click Tagged values on the Selection tab. The attributes of the DiagramStereotype stereotype are displayed.
Click the
Expand button.Click the supportedMetaClass line, the down arrow, and then Use element. The Select object dialog opens.
Enter const.
Click Start search. As the search result, you will see the Constraint object with the Metaclass type, which you created by creating the UML metamodel.
Select the object Constraint.
Click OK. The object is transferred to the supportedMetaClass field.
Select the supportedStereotype Extended class and the supportedSymbol Association in the same way.
Click OK to close the Properties dialog.
.
In the Explorer tree, right-click the group in which you want to create a new group.
Click New model element >
Group.Enter a name.
Press Enter.
.
Right-click the group in the Explorer tree.
Click New model element.
Click Model. The UML top-level element is created and its name is selected for overwriting.
Enter a name.
Press Enter.
.
In the Explorer tree, right-click the top-level element Model (new diagram type) and select Properties.
Click Applied profiles on the Selection tab.
Click the
Apply profiles button. The Apply profiles dialog opens.Enable the check box for the Diagram profile profile you have created.
Click OK. The dialog closes and the profile is applied.
Click OK. The Properties dialog closes.
.
Right-click the top-level element in the Explorer tree.
Click New diagram > Class diagram. The class diagram is created and the name is selected for overwriting.
Enter a name.
Press Enter. The class diagram opens.
.
Double-click in the diagram background. The properties dialog of the diagram opens.
On the Selection tab, enable Applied stereotypes.
Click
Apply stereotypes. The corresponding dialog opens.Select the stereotype Extended class diagram you have created and click OK. The stereotype is listed on the Applied stereotypes properties page.
Click OK to close the Properties dialog.