E000813e PDF
E000813e PDF
Getting Started
4.1
new MMprtTl.doc, printed on 5/7/02, at 2:20 PM
This documentation and related computer software program (hereinafter referred to as the
“Documentation”) is for the end user’s informational purposes only and is subject to change or
withdrawal by Computer Associates International, Inc. (“CA”) at any time.
This documentation may not be copied, transferred, reproduced, disclosed or duplicated, in whole
or in part, without the prior written consent of CA. This documentation is proprietary information
of CA and protected by the copyright laws of the United States and international treaties.
Notwithstanding the foregoing, licensed users may print a reasonable number of copies of this
documentation for their own internal use, provided that all CA copyright notices and legends are
affixed to each reproduced copy. Only authorized employees, consultants, or agents of the user
who are bound by the confidentiality provisions of the license for the software are permitted to
have access to such copies.
This right to print copies is limited to the period during which the license for the product remains
in full force and effect. Should the license terminate for any reason, it shall be the user’s
responsibility to return to CA the reproduced copies or to certify to CA that same have been
destroyed.
To the extent permitted by applicable law, CA provides this documentation “as is” without
warranty of any kind, including without limitation, any implied warranties of merchantability,
fitness for a particular purpose or noninfringement. In no event will CA be liable to the end user or
any third party for any loss or damage, direct or indirect, from the use of this documentation,
including without limitation, lost profits, business interruption, goodwill, or lost data, even if CA is
expressly advised of such loss or damage.
The use of any product referenced in this documentation and this documentation is governed by
the end user’s applicable license agreement.
The manufacturer of this documentation is Computer Associates International, Inc.
Provided with “Restricted Rights” as set forth in 48 C.F.R. Section 12.212, 48 C.F.R. Sections 52.227-
19(c)(1) and (2) or DFARS Section 252.227-7013(c)(1)(ii) or applicable successor provisions.
Contents
Chapter 1: Working Together Effectively!
Modeling in the Multi-User Environment! 1–1
Intended Audience 1–1
Efficient and Effective Modeling 1–1
Benefits 1–2
Key Features 1–2
What's New 1–3
CA Services: Enabling Solutions Through Experience 1–5
CA Education Services 1–6
Computer Associates: The Software That Manages eBusiness 1–6
For More Information 1–6
iii
01MM41TC.doc, printed on 5/8/02, at 12:30 PM
iv
01MM41TC.doc, printed on 5/8/02, at 12:30 PM
v
MD12.doc, printed on 5/2/02, at 4:19 PM
1
Chapter
Intended Audience
This guide is intended for both users (modelers) and ModelMart administrators. The
guide provides an overview of ModelMart and explains how to use it in a workgroup
environment. However, the chapter “Set Up the ModelMart” is directed to ModelMart
administrators and can be skipped by other users. The chapter presents basic
instructions for installing ModelMart on the server and initializing the ModelMart
database.
ModelMart supports many security and administrative features related to its
multiuser capabilities and the client/server environment in which it operates. For this
reason, routine management of ModelMart is usually performed by a dedicated
administrator. Administrators will find detailed information regarding their tasks and
responsibilities in the AllFusion Model Manager Administrator Guide.
1–1
MD12.doc, printed on 5/2/02, at 4:19 PM
Easy to set up, ModelMart is platform and network independent, and sits on your
choice of popular relational databases. Models are stored in a central database called
the ModelMart that runs under Microsoft SQL Server, Sybase, Oracle, or Informix.
Administration overhead is relatively low and proportional to the number and activity
level of the users.
Benefits
ModelMart promotes individual productivity, development coordination, and
implementation of standards. ModelMart can meet your needs by:
• Providing secure, concurrent access to models by securing the models on
the server.
• Providing change control facilities that automatically track changes to
models and provide conflict resolution.
• Providing versioning capabilities that create a project audit trail and
rollback options.
• Allowing modelers to view, with ease, the impact of any changes they
make to a model.
• Providing reuse mechanisms to speed the development and deployment
of new eBusiness databases.
• Providing standards support for consistent database design across
projects.
• Enabling multiple ERwin data modelers and BPwin process modelers to
work together more efficiently.
• Encouraging teamwork and model sharing.
• Allowing you to manage even extremely large models.
• Acting as the hub for an organization's modeling activities and the
integration point for ERwin and BPwin.
• Providing the manager with the ability to define how people work
together by granting various levels of permissions.
Key Features
You will enjoy using the advanced features of ModelMart, which make working with
models easier. Here is a brief explanation of the key features:
Change Control Manager–Controls how changes are saved, helps you
resolve conflicting updates, and lets you see the impact of changes before you
save them.
1–2
MD12.doc, printed on 5/2/02, at 4:19 PM
What's New
If you are already familiar with the features from a prior version, you'll be interested in
what has changed. Here are some of the key enhancements in the new ModelMart 4.1
version:
Easy Conversion of Your ModelMart Database from an Earlier Version of
ModelMart–If you previously worked with ModelMart, probably the most
important task is preserving the database structure and the contents of your
ModelMart 3.0.2 database. That’s why we’ve provided a built-in conversion utility
with ModelMart 4.1, which the administrator uses to perform the conversion. The
ModelMart 4.1 Conversion Utility does all the work of transforming the old into
the new database and it converts the ERwin and BPwin models to the newest
version as well.
If you have a combined ModelMart 3.0.2 database (for ERwin and BPwin models),
the database and the models will automatically be converted to version 4.1 format
during the initialization process. You no longer need to run separate initializations
for ERwin and BPwin.
Buddy Tip—The ModelMart administrator will find details on the conversion feature in
the Administrator Guide.
1–3
MD12.doc, printed on 5/2/02, at 4:19 PM
1–4
02MM4101.doc, printed on 5/6/02, at 12:29 PM
1–5
MD12.doc, printed on 5/2/02, at 4:19 PM
CA Education Services
Computer Associates Global Education Services (CA Education) offerings include
instructor-led and computer-based training, product certification programs, third-party
education programs, distance learning and software simulation. These services help to
expand the knowledge base so companies can use CA’s products more efficiently,
contributing to their greater success. CA Education has been developed to assist
today’s technologists in everything from understanding product capabilities, to
implementation and quality performance. Because the vast community of education
seekers is varied, so too are CA’s methods of instruction. CA Education is committed
to provide a variety of alternatives to traditional instructor-led training, including
synchronous and asynchronous distance learning, as well as Unicenter simulation.
For training that needs to be extended to a wider audience — for a fraction of the
cost and logistical hassle of sending everybody away to a class — CA Education offers
excellent distance learning options.
1–6
MD12.doc, printed on 5/2/02, at 4:19 PM
2
Chapter
DBMS Server
Store/Retrieve
ModelMart Data ModelMart Control Tables,
Stored Procedures, and Queries
ERwin BPwin
ModelMart
…
Running: Informix, Microsoft SQL Server,
Model Navigator
Oracle, or Sybase
You can also use the AllFusion Model Navigator as a ModelMart client. This
product allows read-only access to ERwin data models and BPwin process models. So,
your workgroup can use it to share information with others without the risk that
unauthorized changes might be saved to the ModelMart.
Additionally, you can connect to ModelMart through the ERwin Naming
Standards Editor or the ERwin Datatype Standards Editor.
2–1
03MM4102.doc, printed on 5/7/02, at 4:26 PM
What's Next
Remember you do not install ModelMart on the client workstations. Users connect to
the ModelMart database on the server through the ModelMart client software
contained in ERwin, BPwin, or Model Navigator. The procedures that the ModelMart
administrator must perform before the modeler can begin using ModelMart are
outlined in the next chapter.
If you are not an administrator, skip the next three chapters and go to the chapter
“Join the Workgroup” where you will learn how to connect to ModelMart. Later, you
can return to the chapters “Secure Your Models” and “Organize Your Models” to gain
an understanding of how models are organized in libraries and secured in ModelMart.
2–2
04MM4103.doc, printed on 8/5/2002, at 11:34 AM
3
Chapter
DBMS Requirements
The administrator should be the database owner (dbo) for Microsoft SQL Server or
Sybase, the schema owner for Oracle, or the database administrator (DBA) for
Informix, of the database that will contain ModelMart. Before the ModelMart
administrator can install ModelMart on the server, he or she must verify that the
DBMS environment is prepared for ModelMart installation, and that the server system
requirements meet at least the minimum specifications. For information regarding the
server system requirements and preparing the DBMS environment, see the
Administrator Guide. Additionally, the administrator of the DBMS, must set up user
permissions for the DBMS.
Installing ModelMart
The installation of the administrative files is the same for each DBMS supported by
ModelMart (Microsoft SQL Server, Sybase, Oracle, or Informix). The installation is
easy to do. Just insert the ModelMart CD and follow the dialogs.
3–1
04MM4103.doc, printed on 8/5/2002, at 11:34 AM
3–2
04MM4103.doc, printed on 8/5/2002, at 11:34 AM
5. Click Create to create the ModelMart tables and stored procedures in the
selected database. After the ModelMart is created, the ModelMart Security
Manager opens.
3–3
04MM4103.doc, printed on 8/5/2002, at 11:34 AM
6. In the ModelMart Security Manager dialog, drag your user name from the
User list to the Administrator profile in the Security Profile list.
Important! If you skip this step, you will not be able to access
ModelMart.
7. Optionally, use the controls in the Security Manager dialog to assign security
profiles for the database to other ModelMart users.
8. When you are done assigning profiles click OK. The Setup Complete message
displays.
9. Click OK to return to Windows.
3–4
04MM4103.doc, printed on 8/5/2002, at 11:34 AM
Important! If you do not select the User role, users will not be able to
access ModelMart. This role is created in step 10 of the
procedure for creating the ModelMart database on Oracle. For
details, see the appendix “Creating the ModelMart Database” in
the Administrator Guide.
3–5
04MM4103.doc, printed on 8/5/2002, at 11:34 AM
5. From the Table Tablespace drop-down list, select the Oracle tablespace
in which you want to store the ModelMart tables. Optionally, select the
Oracle tablespace in which you want to store ModelMart indexes from
the Index Tablespace drop-down list. You can store the tables and
indexes in the same tablespace or in different tablespaces.
6. Click Create to automatically create the ModelMart objects. When the
ModelMart is created, the Security Manager dialog opens.
7. In the ModelMart Security manager dialog, drag your user name from the
User list to the Administrator profile in the Security Profile list. For a
sample Security Screen, see step 6 in Initializing the ModelMart on
Microsoft SQL Server or Sybase in this chapter.
Important! If you skip this step, you will not be able to access
ModelMart.
3–6
04MM4103.doc, printed on 8/5/2002, at 11:34 AM
Important! If you skip this step, you will not be able to access
ModelMart.
6. Optionally, use the controls in the Security Manager dialog to add and
remove other ModelMart users and assign security profiles for the
database.
7. When you are done assigning profiles click OK. The Setup Complete
message displays.
8. Click OK to return to Windows.
What’s Next
This chapter discussed the ModelMart administrator's job of setting up the
ModelMart. The administrator also needs to assign user security profiles and set up the
libraries in which models are stored. The next chapter explains how user security
profiles can help secure models.
3–7
05MM4104.doc, printed on 5/7/02, at 11:17 AM
4
Chapter
Y ou need to think about how you are going to secure your models—who will
have access to them and what can they do to them. Initially, only the
ModelMart administrator who installed the ModelMart database can assign
security profiles. However, the administrator can grant such authority to other users by
giving them an Administrator security profile. These tasks are performed in the
ModelMart Security Manager.
By assigning a user to a security profile, the ModelMart administrator can control
the actions that the user can perform. Models can also be protected by locking them
and by organizing them into libraries. For details on locking and libraries, see the
chapters “Lock Your Models” and “Organize Your Models.”
4–1
05MM4104.doc, printed on 5/7/02, at 11:17 AM
If you have an Administrator profile, you can follow these steps to assign a user to
a profile applicable to a specific database, library, model or subject area:
1. Open the ModelMart Security Manager and select a database, library,
model, or subject area in the Object tree.
2. In the User pane, select the user that you want to assign to a security
profile.
3. Drag the icon for the user from the User list onto the security profile
icon in the Security Profile list.
4. Repeat Steps 2 through 4 for each ModelMart user.
In the following example, User02 is given the Modeler security profile for the Test
library:
Administrators can assign users to more than one profile. For example, a user can
have a different profile for different libraries. In Library 1, the Administrator can
assign a user to the Architect profile, which grants extensive read and write privileges.
In a Library 2, that same user can be assigned to the Viewer profile, which grants read-
only permission.
4–2
05MM4104.doc, printed on 5/7/02, at 11:17 AM
4–3
05MM4104.doc, printed on 5/7/02, at 5:01 PM
Buddy Tip—If you are an administrator and need to know how to add or modify a
security profile, see the Administrator Guide for details.
Buddy Tip—If you do not have permission to save changes to a ModelMart model, you
could still open the ModelMart model, make changes to the model, and then save it locally as
an ER1 (ERwin) or BP1 (BPwin) file. However, when you save changes back to
ModelMart, the model is updated with the changes for which you have permission, but all
prohibited changes are discarded.
What's Next
You've just learned how user security profiles protect models. You also need to know
about libraries, in which models are stored. After setting up the libraries, the
administrator may want to reassign security profiles, because security profiles can be
applicable to specific libraries or models. The next chapter will help you to set up your
libraries.
4–4
MD12.doc, printed on 5/2/02, at 4:19 PM
5
Chapter
I n order to save a model in ModelMart, you must first create a library in which to
put the model. A library is a container object that is used to group models.
Initially, the ModelMart administrator or architect sets up the libraries. Later, other
users may be given security permission by the administrator to perform this task.
Libraries aid security and standardization as described next:
Limit access for security reasons–Libraries facilitate access control because
security profiles can limit access to specific libraries. In addition, security
profiles can allow a user to create, rename, or delete libraries.
Maintain clear boundaries between projects–Where isolation and clear
boundaries between projects must be maintained, a library provides that
boundary to protect the integrity of your project. Most organizations find that
establishing several libraries helps to distinguish one set of models from
another. For example, you may want to create two libraries one for Test and
the other for Production. Or, you may want to create a library for each
functional area such as Customer Service and Sales. Library-level security
permissions may be established to help protect the models in a library from
inadvertent changes or deletions.
Aid standardization–Templates with standards can be stored in each library.
Templates maintain ModelMart model settings such as background color,
foreign key color, shadow offset, display level, and predefined stored displays
that are automatically applied to each new model based on the template.
Templates provide the ideal way of maintaining a consistent look and feel
across models.
In addition, ERwin model objects can be maintained with one library
standards model that contains objects to be shared. The model that holds the
objects is used as a source model for other models in the same library. You
can use the Sync with Model Source wizard to synchronize the source model
with a model where you would like the change to take effect. To open the
Sync with Model Source wizard, choose Sync with Model Source on the
ERwin Tools menu.
5–1
MD12.doc, printed on 5/2/02, at 4:19 PM
Setting Up Libraries!
To open the ModelMart Library Manager, click on the ModelMart toolbar. This
sample screen shows that two libraries–Test and Production–have been created in the
database named mdlmrt41.
To add a library:
1. Click on the database name in the tree control.
2. Then type the new library name in the Name box, and click Create.
3. If you need to rename a library, select the library by clicking on it. Then
type in the new name in the Name box and click Update.
4. If you want to, you can add a description for the library. Click the
Detailed button, and type in the Description box. Click Update to save
your changes.
If you click the Detailed button, the dialog changes to the details view. You will
see a Details box, which shows when the library was created and by whom. From the
details view, click Brief to return to the brief view.
5–2
MD12.doc, printed on 5/2/02, at 4:19 PM
Setting Up Libraries!
This sample screen shows the details view, where a description has been added for
the Test library.
The Delete button should only be used if you are sure you want to delete a library
and all the models it contains.
Click Close when you are finished.
Viewing Libraries
Keep in mind that when you access ModelMart through ERwin, you will not be able to
see any BPwin models listed in the ModelMart Library Manager. If a BPwin library
exists, the library folder will be visible in the tree control, but it will appear to be
empty. The opposite is also true. If you access ModelMart through BPwin, you will not
be able to see any ERwin models in the Library Manager.
Buddy Tip—For more information, search the online help index for ModelMart Library.
5–3
MD12.doc, printed on 5/2/02, at 4:19 PM
Setting Up Libraries!
What's Next
Now you know how to set up libraries and why libraries aid security and
standardization. The next chapter explains how to connect to ModelMart.
5–4
MD12.doc, printed on 5/2/02, at 4:19 PM
6
Chapter
6–1
MD12.doc, printed on 5/2/02, at 4:19 PM
Connecting to ModelMart!
After you have entered the appropriate information in the ModelMart Connection
Manager, you are ready to click Connect.
The History
list shows the
last few
connections to
a ModelMart.
Buddy Tip—For more information, search the online help index for ModelMart:
connecting to.
6–2
MD12.doc, printed on 5/2/02, at 4:19 PM
Connecting to ModelMart!
What's Next
Now that you know how to connect to ModelMart through a ModelMart client, you
should be ready to start working with models in ModelMart. In the next chapter, you'll
learn how to add models to the ModelMart, as well as how to open, close and save
them.
6–3
08MM4107.doc, printed on 5/7/02, at 5:47 PM
7
Chapter
B
efore you can work on your ModelMart models, you must save them the to the
ModelMart database. To do this, open the model in the ModelMart client,
ERwin or BPwin; then save it to ModelMart. Once your models are saved in the
ModelMart, they become available to other members of the workgroup. ModelMart
provides workgroup modeling features–model status, lock options, review changes–
that help to control updates to models when you are opening, closing and saving
models.
7–1
08MM4107.doc, printed on 5/7/02, at 5:47 PM
Try the following exercise to see how to open an ERwin model and save it to
ModelMart in a library that you already created.
You can
rename
the default
model
name.
7–2
08MM4107.doc, printed on 5/7/02, at 5:47 PM
Opening a Model
When you open a ModelMart model, ModelMart automatically creates a copy of the
model and sends it to your workstation. If you prefer, you can work off line by saving
the model to your workstation as an ER1 file (ERwin) or BP1 file (BPwin), and then
disconnecting from ModelMart.
When you work on a ModelMart data model, you can use all of the ModelMart
and ERwin tools and features to modify the model. When you work on a ModelMart
process model, you can use all of the ModelMart and BPwin tools and features to
modify the model.
To open a model:
1. Choose Open on the ModelMart menu to access the Open ModelMart
Model dialog.
2. Select the library that contains the model you want to open. All the models
in the library you selected will now appear in the ModelMart Model box.
3. Select the model you want to open, and click OK to open it. You may be
able to change the Lock Options before you open the model. To learn
more about these options, see the chapter “Lock Your Models.”
You can also open a subject area (submodel), rather than the entire model. The
submodel icon appears in front of each submodel. See the chapter “Work with
Data Model Submodels,” for more information.
7–3
08MM4107.doc, printed on 5/7/02, at 5:47 PM
Closing a Model
If you choose Close on the ModelMart menu, you will have the option to save the
model to ModelMart, save the model locally, or close without saving the model. The
Close dialog also shows the status of the file, such as if it was opened from the server,
its lock status, and whether there are unsaved changes.
A sample Close dialog is shown next.
If you had already saved all the changes you had made to the model while you had
the model open, the Save to ModelMart close option would be grayed out, and the text
in the Status box would state that your model was up-to-date. In that case, you could
choose to Save as ER1 file (or Save as BP1 file), or Close without saving.
7–4
08MM4107.doc, printed on 5/7/02, at 5:47 PM
Saving Models
ModelMart provides the following save options:
• Save–To simply save a model, click on the ModelMart toolbar or
choose Save from the ModelMart menu. This opens the Save Model to
ModelMart dialog:
Uncheck the Review All Changes Before Save box only if you do not want to
review any changes that you may have made to your model. Click OK to save
the model.
• Close–When you choose Close on the ModelMart menu, the Close dialog
gives you the options of saving the model to ModelMart, saving the model
locally as an ERwin or BPwin file, or closing without saving.
• Save As–If you want to rename a model, use the Save As option on the
ModelMart toolbar. You can also save a copy of the model to another library
using this option. You need to be careful when renaming models. For details,
see Renaming When Saving in the chapter “Track Changes with Versions.”
Buddy Tip—If the model you want to save has been locked, your changes will not be saved
to that model until it is unlocked. For details on locking, see the chapter “Lock Your
Models.”
7–5
08MM4107.doc, printed on 5/7/02, at 5:47 PM
Multi-Mart
The Multi-Mart feature allows you to save a ModelMart model locally, or to another
ModelMart, and then save it back to the ModelMart with all the functionality of the
ModelMart model intact.
When you save a ModelMart model as an ER1 file (ERwin) or BP1 file (BPwin),
you can later save it back to ModelMart. ModelMart automatically recognizes models
that were previously saved in it. When you open the model and save it in ModelMart,
the ModelMart Change Control Manager–Review Changes dialog opens and displays a
list of changes made to the model outside of ModelMart. The change list shows how
the model you are saving differs from the model on ModelMart, and you can use the
dialog to review these changes and accept or reject them, before saving to ModelMart.
This functionality also allows you to save a ModelMart model to an ER1 file or a
BP1 file and then save the ER1 file or BP1 file as a ModelMart model in another
ModelMart. You can save changes to the ModelMart model in the other ModelMart.
Then save it as an ER1 file or a BP1 file, and then use the model merge feature to
merge the model into the same ModelMart model in the first ModelMart.
Saving Changes
When you are finished working in a ModelMart model and want to save your changes,
if you choose the option Review All Changes Before Save, the ModelMart Change
Control Manager–Review Changes dialog opens and displays a list of changes. This
dialog shows the changes that you made to the model on your workstation. Also, if
you have been working on an unlocked model, the Review Change dialog may show
that changes were made to the ModelMart model by another modeler since you
opened the model from ModelMart or since you last saved the model to ModelMart.
7–6
08MM4107.doc, printed on 5/7/02, at 5:47 PM
5. When the Save to ModelMart dialog appears, be sure to check Review All
Changes Before Save and click OK. The ModelMart Change Control
Manager–Review Changes dialog will appear.
7–7
08MM4107.doc, printed on 5/7/02, at 5:47 PM
By default, the dialog does not show detail-level or graphical changes. These are
the indirect changes that ModelMart automatically implements as a result of the direct
changes you made. However, if you click the Show Graphical Changes tool , the
Review Changes dialog will show additional information as follows:
The Graphical Changes tool displays or hides graphical changes. These are
changes to the visual appearance of the model, such as repositioning an entity, a
relationship line, or changing an entity name as we did in this exercise.
7–8
08MM4107.doc, printed on 5/7/02, at 5:47 PM
The next screen shows that the change of the entity name from
CUSTOMER_2 to CUSTOMER_CREDIT has been turned off.
Reject a
Specific
Change
2. To accept all of the changes that appear in the Review Changes dialog,
except any changes that you have turned off, and save the model back
What's Next
The basics of saving, opening, and closing models were discussed in this chapter. Now,
you are ready to learn more about the Change Control Manager, which helps you to
see what changes were made and to control what changes will be saved.
7–9
09MM4108.doc, printed on 5/8/02, at 11:17 AM
8
Chapter
T
he Change Control Manager is useful to workgroup modelers who work with
shared models, and to individual modelers who work with their own models.
This feature enables a user to review their own changes before saving them,
view changes previously saved, and compare changes saved to two different versions.
It also enables a user to refresh the unlocked model they have open with any changes
made by another concurrent modeler.
Changes are viewed in the change list, which can be filtered by type of change and
searched so that you can easily find any specific changes you want to review. You can
use the change list to turn off your own changes before you save them and resolve
conflicting changes made by other modelers.
There are several variations of the Change Control Manager–Review Changes,
Conflict Resolution, Refresh Client, and Version Differences. The variation of the
dialog depends upon the operation you performed to invoke it. The dialogs are very
similar, but not all of the capabilities of the Change Control Manager are available in
each.
Review Changes
You can review changes in an open model at any time by clicking the Review
Changes icon on the ModelMart toolbar. This opens the Change Control Manager–
Review Changes dialog where you can review all the changes made since opening the
model. Every time you save a ModelMart model, you have the option of using the
Change Control Manager–Review Changes dialog to selectively accept or reject
individual model changes.
For an example of how to save your own changes, see Saving Your Changes in the
chapter “Open, Close, Save Models.”
8–1
09MM4108.doc, printed on 5/8/02, at 11:17 AM
8–2
09MM4108.doc, printed on 5/8/02, at 11:17 AM
Conflict Resolution
In a workgroup modeling environment, you and other users may be working on the
same ModelMart model (ERwin or BPwin) at the same time. For example, if you
opened a model from ModelMart and you do not lock it, another modeler could save
changes to the model. When you save your changes with the option Review All
Changes Before Save, their changes will appear in the Change Control Manager–
Conflict Resolution dialog along with the changes you made. However, the changes
made by the other modeler will appear in a separate list. Your changes are shown on
the left side and changes saved to the ModelMart model by the other modeler are
shown on the right side. If you right-click on a change statement in the right side of a
two-panel dialog, you can access more information about the change (who made the
change and when).
For example, if you did the exercise in the section Saving Your Changes in the
chapter “Open, Close, Save Models,” you would have made the following changes to
the EMOVIES-MM model:
• Changed the table name of CUSTOMER_1 to CUSTOMER_INFO
• Changed the table name of CUSTOMER_2 to CUSTOMER_CREDIT
Suppose that after you opened your model from ModelMart, and before you
chose to save it, another modeler saved the following changes to the ModelMart
model:
• Changed the table name of CUSTOMER_2 to CUSTOMER_CR
• Changed the table name of EMPLOYEE to EMPLOYEE_NUMBER
8–3
09MM4108.doc, printed on 5/8/02, at 11:17 AM
When you save the model to ModelMart with the Review All Changes Before Save
option, the following Change Control Manager will appear:
Your conflicting changes appear on the left. The conflicting changes already saved
to the model in the ModelMart database appear on the right. By default, the Conflict
Resolution change list shows that all your conflicting changes have been cancelled and
all of the your nonconflicting changes have been accepted. However, in this sample
dialog, the change lists are filtered to show only conflicting changes. (For information
about filtering, see Filtering the Change List later in this chapter.) Changes that appear
in red text with an in front of them will not be saved; changes that appear in black
with an in front of them will be saved.
8–4
09MM4108.doc, printed on 5/8/02, at 11:17 AM
click .
4. The Review Change dialog with a single change list showing the
approved changes will open. You can review the change list before you
save to ModelMart and reject any change in this list.
5. When you have finished your review, click to save your changes.
Buddy Tip—If your changes conflict with changes made by other users, in addition to
selectively saving or canceling each change in the list, you can filter the list to highlight items,
and create a customized report to help resolve conflicts in collaboration with other modelers.
For details about filtering, see Filtering the Change List later in this chapter. For details
about reports, see the chapter “Create Data Model Reports.”
Refresh
While you are working on an unlocked copy of a ModelMart model, other users can
save changes to that model. You can use the refresh feature to see the changes made
by other users and update your model with any changes that do not conflict with
changes made by you.
After you choose Refresh on the ModelMart menu, if no changes were made by
other users, a message appears indicating that your copy of the model is current:
8–5
09MM4108.doc, printed on 5/8/02, at 11:17 AM
8–6
09MM4108.doc, printed on 5/8/02, at 11:17 AM
Select any of the following tools on the ModelMart Change control manager
toolbar while you review the conflicts:
click .
• To display or hide graphical changes (such as the new position of an
entity), click .
You must click OK to apply the filters to the current Change Control Manager
screen. These filters will continue in effect each time the Change Control Manager
opens, unless you change the filters in the filter selection dialog or select the filters
using the toolbar icons.
8–7
09MM4108.doc, printed on 5/8/02, at 11:17 AM
Buddy Tip—For more information, search the online help index for ModelMart Change
Control Manager.
What's Next
You learned how the Change Control Manager can help you to control changes to
models. You can also protect your models by using the lock options. How to do this is
explained in the next chapter.
8–8
10MM4109.doc, printed on 5/8/02, at 3:12 PM
9
Chapter
L ock options help to secure models and manage how changes are saved to
ModelMart. You can change the lock option when you open a model. However,
the options available to you depend upon your security profile and whether or
not another user has already locked the model. You can also change the lock option
after you have opened a model and are working in the model, and when you close it.
Lock Modes
ModelMart provides the following lock options:
Locked–If you have permission to update and save a model, you can lock the
model exclusively for your own use and prevent other users from saving
changes to the model in the ModelMart database during your modeling
session. In effect, other modelers are locked out from saving changes until
you unlock the model. Because you hold an exclusive lock, you can save the
ModelMart model without having to check for conflicting changes made by
other users. In addition when you close a ModelMart model, you can select
the Keep ModelMart Diagram Lock option on the Close dialog to keep a
model locked for your own use even after you have disconnected from
ModelMart. For example, if you save an ER1 file to work offline, you can
keep the ModelMart model locked so that no other user can make changes to
it while you are working offline.
Unlocked (default)–If you have permission to update and save a model, you
can open a model in Unlocked (shared) mode. Because other users can save
changes to the ModelMart while you are working on an unlocked model, you
may have to resolve conflicts with their changes when you save your work to
ModelMart.
Read-only–This lock mode is automatically assigned to you, if your security
profile does not grant you permission to update and save the selected model.
When you open a ModelMart model in read-only mode, you can view the
model and save it locally as an ERwin or BPwin file, but you cannot save the
model back to the ModelMart database.
Before you open a model, ModelMart checks your assigned permissions and
determines whether or not another user has locked the model you want to open. This
information is used to determine which locking options are available in your modeling
session.
9–1
10MM4109.doc, printed on 5/8/02, at 3:12 PM
Buddy Tip—Whether or not you can update and save a model is defined in your security
profile. Contact your ModelMart administrator if you need to update a model that
automatically opens as read-only.
9–2
10MM4109.doc, printed on 5/8/02, at 3:12 PM
You can change the lock mode in an open model, by checking or unchecking
Lock on the ModelMart menu, provided you have permission to update and save the
model. You can also toggle the lock mode by clicking the Lock button on the
ModelMart toolbar. However if another modeler already holds the lock, you can't
unlock it. Users who don't hold the lock are able to open and work on a locked model,
but they are not able to save their changes to ModelMart. You could save the model
with the changes to ERwin or BPwin. Then save it back to ModelMart after you know
it has been unlocked.
If you choose to keep the lock on the model, no one else can save his or her
changes until you unlock it. If you choose to work on a model without locking it, you
and other users can save changes on a first-come-first-serve basis. As a result, you may
have to resolve conflicts with their changes in the ModelMart Change Control
Manager dialog when you save the model back to the ModelMart database. ModelMart
tracks the changes made to a model since you opened it, so you can safely merge in
your changes without overwriting changes made by other users. For details about
conflict resolution, see Changes Made by Concurrent Users in the chapter "Manage
Changes to Models."
Buddy Tip—If a data model submodel is locked, it locks the entire model.
What's Next
In this chapter, you learned that the lock options can help protect your models from
unauthorized changes. Next, you'll see that each time you save changes, a new version
of a model is created. Thus, the versioning feature creates an audit trail that will help
you to keep track of changes that were saved.
9–3
11MM4110.doc, printed on 5/2/02, at 4:23 PM
10
Chapter
Parent Versions
When you open a model from the Open ModelMart Model dialog, you are opening the
parent model. If you click on the model to select it, you will be able to see who created
the model and who made the last changes, along with the dates. This information will
appear in the lower area of the dialog below the name of the model you selected. A
sample Open ModelMart Model dialog is shown next:
Details
about the
selected
model.
10–1
11MM4110.doc, printed on 5/2/02, at 4:23 PM
Versions
To see if prior versions of the parent model exist, open the ModelMart Version
Manager. If there are any prior versions, they will appear in the expanded view of the
directory tree under the parent model with the most recent prior version appearing
directly under the parent model and the earliest version appearing at the end of the list.
The earliest version is v.1, which is the state of the model when it was first added to
the ModelMart. Each time changes are saved, a new version is created with a
sequential version number. Here is a sample ModelMart Version Manager dialog:
Version numbers
Parent
model
Model
versions
Earliest
version
of the
model
10–2
11MM4110.doc, printed on 5/8/02, at 3:50 PM
Locking
When you open a parent model on the Open ModelMart Model dialog, you can select
the Lock Option. When you open a version, you do not have the option to select the
lock mode on the ModelMart Version Manager. However, once the parent or version
is open, you can turn the lock mode on or off by checking or unchecking the Lock
option on the ModelMart menu. You can also use on the ModelMart toolbar to
toggle the lock mode on or off.
Saving
When you save a ModelMart model, ModelMart saves your changes as the parent
model. At the same time, what had been the parent model before you saved your
changes becomes the most recent prior version. Each version is assigned a unique
name, with a sequential version number, the user ID of the modeler who saved the
changes to that version, and the date that the save was made.
Every save creates a new parent and the old parent becomes the latest prior
version. If you save changes to a parent model, the save creates a new parent (from the
parent plus the changes you made), and the old parent becomes the latest version that
is identified by a unique version number. This is also true when you save a prior
version. However, when you open, change and save any prior version, that prior
version remains unchanged, and it retains the same unique name and version number.
Thus each version is preserved and serves as a record of each set of changes made in a
particular save.
If you want to revert to an earlier version, you can promote a version to parent
status by opening it and saving it. It will then become the current parent. You can also
save the version using the Save As option on the ModelMart menu to save it with a
new name. For details, see Renaming When Saving in this chapter.
10–3
11MM4110.doc, printed on 5/2/02, at 4:23 PM
10–4
11MM4110.doc, printed on 5/2/02, at 4:23 PM
When the save is complete, the screen would show the new version v.4, which was
the prior parent. The prior parent would be replaced with the latest save:
10–5
11MM4110.doc, printed on 5/2/02, at 4:23 PM
Marked Versions
You can designate a version as a marked version to distinguish it as a milestone in the
development process. Although versions can be deleted using the Purge button on the
ModeMart Version Manager, marked versions cannot be purged.
To mark a version:
1. Select the version.
2. Click the Mark version button to open the Save ModelMart Version
dialog.
3. In the Save ModelMart Version dialog, provide a description to
distinguish this version from other versions. If you want to, you can also
use this dialog to change the name of the version.
4. Click OK when you are finished.
The icon in the ModelMart Version Manager directory tree identifies marked
versions. The marked version does not replace the version from which it was created.
In the following sample screen, you can see that version v.2 still exists in the directory
tree below the new marked version. The default name of the marked version shows
that it was created from version v.2. You can change the name.
Marked
Version
created from
Version v.2
10–6
11MM4110.doc, printed on 5/2/02, at 4:23 PM
Version Differences
In addition, you can compare the contents of any version with another version of the
same model or with the parent model.
In order to compare the differences between versions:
1. Select Versions in the ModelMart menu. The ModelMart Version Manager
will open.
2. Select the two versions that you want to compare by clicking on one
version or parent, and while holding down the keyboard Ctrl key, click on
the second version.
Versions v.1 and v.2 are selected in this sample screen:
10–7
11MM4110.doc, printed on 5/2/02, at 4:23 PM
The change list in this Version Differences screen shows the differences
between version v.1 and version v.2, and that two changes were saved in
version v.2:
Buddy Tip—For details on working with the Change Control Manager, see the chapter
"Manage Changes to Models."
What's Next
You learned how helpful the versioning feature is because it records all changes made
to your models. Next, you'll see how easy it is to merge models together.
10–8
MD12.doc, printed on 5/2/02, at 4:19 PM
11
Chapter
T he model merge feature allows you to merge independent data models together.
A ModelMart data model can be merged with another ModelMart data model
or with an ERwin (ER1) model. An ERwin model can be merged with a
ModelMart data model or with another ERwin model.
You might want to use model merge if:
• You have been working independently from other data modelers in your
workgroup, and now want to merge your models together.
• You have a set of models that you want to combine into an enterprise-
wide model.
• You decide to bring together two projects that you previously had
thought were separate projects.
Merge Results
When you merge two independent data models, you choose whether to create a new
model or update a current model:
New model–Merge two independent models into a single new model. The
original models remain unchanged.
Update current model–Merge changes from another model into the current
model. The other model remains unchanged.
11–1
MD12.doc, printed on 5/2/02, at 4:19 PM
3. In the Merge With pane, select the other model type–ModelMart or ER1–that
you want to merge with the open model. Use the Browse button to locate the
other model. After you choose the model, its path appears in the Merge With
field.
4. In the Merge Results pane, choose Update Current or Create New Model to
update the current model or create a new model.
11–2
MD12.doc, printed on 5/2/02, at 4:19 PM
11–3
MD12.doc, printed on 5/2/02, at 4:19 PM
If you selected the Merge Method Select Filters and Resolve Differences, the
Update Model wizard begins. At this point, the Update Model–Items to
Compare dialog opens listing the logical or physical model object types to be
used in comparing the current model with the other model. You can change
the compare options in the default Options Set by unchecking any items that
you do not want to compare with the other model.
The Compare Level option–logical or physical–that you choose on the
Update Model ModelMart Merge Manager determines the compare options in
the Update Model–Items to Compare dialog. A sample dialog follows
showing the logical default option set.
11–4
MD12.doc, printed on 5/2/02, at 4:19 PM
11–5
MD12.doc, printed on 5/2/02, at 4:19 PM
9. Click Next. The Other Model Filter Options dialog appears. You can
base the filters on a specific subject area. Check the box to select this
option, and then click the button to the right to specify the subject area.
10. Click Next to proceed to the Resolve Differences dialog. This is where
you can pick and choose specific model objects from the other model to
import into the current model. An example of this dialog is shown in the
following section.
11–6
MD12.doc, printed on 5/2/02, at 4:19 PM
11–7
MD12.doc, printed on 5/2/02, at 4:19 PM
The right side of this dialog shows the model objects in the other model that
will be copied into the current model on the left side. Note that this dialog
shows only the differences between the two models, because the option to
Show Only Differences is checked in the lower left area of the dialog.
11–8
MD12.doc, printed on 5/2/02, at 4:19 PM
The Resolve Differences dialog indicates whether the differences in the other
model will be created or modified in the resulting model. Remember that in
this example, you changed the physical names but not the logical names for
MOVIE and MOVIE_COPY. In this dialog, you can see that the physical
table names FILM and FILM_COPY in the other model differ from the
corresponding table names in the current model. The in the differences
list indicates that the differences in the other model will be imported into the
current model. You can choose to ignore these changes by using the toolbar
buttons in the dialog.
Buddy Tip—For more information about the Update Model–Resolve Differences dialog,
see the online help index for Update model: resolving differences. For more information about
merging models, see the online help index for ModelMart model: merging.
13. Click Next. A message box will tell you that the import items you selected will
be applied to model: EMOVIES-MM.
NOTE: If you choose to create a new model, rather than update a model,
a message will inform you of the new model name that is
automatically chosen for you. You can change the name when
you save the new model using Save As.
14. Click Next. The updated model will appear. Look at the table names in the
physical view to see that FILM and FILM_COPY were imported into the
new model and replaced the prior tables named MOVIE and
MOVIE_COPY.
11–9
MD12.doc, printed on 5/2/02, at 4:19 PM
When two models are merged, it is first determined if any of the objects in the
other model duplicate an object in the current model. If two objects are the same, they
become a single object in the merged model. The new object includes all the
characteristics from both of the objects. If two objects are different, the two separate
objects are included in the merged model.
The merge rules allow similar objects in different models to be merged even
though they may contain some minor non-identical properties. For example, two
entities can be merged even if different fonts are used for the Entity Name in the
current model and the other model. When this happens, you can resolve the
differences in the Resolve Differences dialog.
What's Next
This chapter showed how to merge data models together. In the next chapter, working
with subject areas is discussed.
11–10
13MM4112.doc, printed on 5/8/02, at 4:30 PM
12
Chapter
W hen you save an ERwin data model that contains subject areas to the
ModelMart, each subject area automatically becomes a ModelMart
submodel. You can work with a ModelMart submodel independently of the
main model. When you save the submodel, the main model is automatically updated
with your changes.
Using the ModelMart Subject Area Manager you can create, update, and delete
ModelMart submodels, much as you can in the ERwin Subject Area Editor. You can
also use the ERwin Subject Area Editor to create, update, and delete submodels in an
open ModelMart model.
12–1
13MM4112.doc, printed on 5/8/02, at 4:30 PM
12–2
13MM4112.doc, printed on 5/8/02, at 4:30 PM
Creating a Submodel
You can create new submodels in ModelMart by using the ModelMart Subject Area
Manager. When you choose ModelMart Subject Area Manager on the ModelMart
menu, the dialog opens where you can access all models and submodels in the
ModelMart. To create a submodel, simply select the model in the
ModelMart/Library/Diagram/Subject Area tree control, type a name in the Subject
Area Name field, and click the Create SA button.
After you create the submodel, you can specify the entities that you want to
include in the submodel. In the tree control, click on the submodel you just created.
The Entities in Diagram box shows all the available entities in the main model.
Drag the entities that you want to include in the submodel from the Entities in
Diagram box to the Entities in Subject Area box. Check the Include Parents and
Children box, if you want to move parent and child entities when you move an entity.
Entities can be moved back and forth between the boxes. Click OK, when you are
finished.
When you save the model to ModelMart, the Review Changes dialog displays
where you can review your changes to the model before committing them to being
saved.
12–3
13MM4112.doc, printed on 5/8/02, at 4:30 PM
If you want to rename a submodel, simply select the submodel in the tree control
and type the new name in the Subject Area Name field, and click the Rename SA
button. This change is treated like any other change; therefore, you must save the
change.
What's Next
Working with data model submodels was discussed in this chapter. How to generate
reports on data models is explained in the next chapter.
12–4
MD12.doc, printed on 5/2/02, at 4:19 PM
13
Chapter
W ith the Data Browser, you can create and print reports about the current
state of a ModelMart data model, as well as the changes that have been
made to a model.
You can also use the Data Browser to generate reports about libraries or security.
In order to access these options in the Data Browser, you need to open the Data
Browser from either the Library Manager or the Security Manager by clicking the
Report button.
2. Choose which of the reports types you would like to generate. For this
exercise, choose Entities. When you click on a report type to select it, a
description of the report type appears in the lower left box.
13–1
MD12.doc, printed on 5/2/02, at 4:19 PM
After a report is generated, the new report is listed in the All Reports box of the
Data Browser under the report type you selected.
NOTE: A result set for a ModelMart report exists only during your
current ModelMart session. If you want to keep a result set for a
new ModelMart session, you must create a folder and save the
result set in the folder. For details, see online help.
13–2
MD12.doc, printed on 5/2/02, at 4:19 PM
3. Choose one of the predefined reports in the Script tree. Each predefined
report is an SQL query that returns the requested results set from the
ModelMart. Your options are:
Script with Details–Will report on all details including graphical changes.
Script–Will not show details or graphical changes.
Compare EMOVIES-MM: v. 1 by user01 on Jan. 30, 2002 with EMOVIES-
MM–In this exercise the option compares version v.1 and the parent
model. This option varies depending upon the type of operation you
executed to bring up the Change Control Manager.
13–3
MD12.doc, printed on 5/2/02, at 4:19 PM
This screen displays the results of this exercise. The results set for the query shows
that the entities CUSTOMER_2 and CUSTOMER_1 were updated in the parent
model.
After you run a report and generate a results set, you can customize the content
and appearance of the results set. In addition, you can create and save your own
custom report views. Search features allow you to find information in the results set.
You can also print your report.
Buddy Tip—For more information, search the online help index for ModelMart reports.
What's Next
In this chapter, you learned how to use the Data Browser to create and print reports
about the current state of a ModelMart data model, as well as the changes that have
been made to a model. In the next chapter, you'll see how you can control naming and
datatype standards in ModelMart data models.
13–4
MD12.doc, printed on 5/2/02, at 4:19 PM
14
Chapter
W
hen multiple individuals or groups are responsible for designing a set of data
models, the enforcement of standards is critical. The ERwin Naming
Standards Editor and the Datatype Standards Editor can help you avoid
problems of inconsistency by facilitating the management of naming conventions and
datatype standards. These features are fully integrated with ModelMart. You can use
them to create or edit your standards files, and save them to ERwin or to ModelMart
libraries.
Naming Standards
Use the Naming Standards Editor to define parts of logical and physical names and
build a glossary of words, abbreviations and alternate abbreviations. This information
is saved in a naming standards file (*.nsm). This file must be attached to each model to
which you want the standards to apply using the Model Naming Options dialog.
Datatype Standards
Use the Datatype Standards Editor to define logical datatypes and map datatypes
between systems. This information is saved in a datatype standards file (*.dsm). Using
the Model Datatype Options dialog, you must attach a datatype standards file to each
model to which you want the standards to apply. If you do not attach a standards file,
default datatype mapping is used.
14–1
MD12.doc, printed on 5/2/02, at 4:19 PM
Both editors can also be accessed without opening ERwin, by selecting them on
the Computer Associates AllFusion ERwin Data Modeler programs list. Click Start on
your computer desktop taskbar, and then choose Programs, Computer Associates,
AllFusion, ERwin Data Modeler, ERwin Naming Standards Editor, or ERwin Datatype
Standards Editor:
When you open the Naming Standards Editor or the Datatype Standards Editor
from the programs list, the ModelMart Connection Manager automatically opens,
unless you previously checked the Suppress this Dialog on Startup box on the dialog.
To connect to ModelMart, follow the instructions provided in the chapter “Join the
Workgroup.”
You do not have to be connected to ModelMart to work in the editors. You can
close the ModelMart Connection Manager, and use the editors to create and update
naming and datatype standards files and save them locally. However, you must be
connected to ModelMart in order to save the standards files to ModelMart or to attach
a standards file to a ModelMart model.
14–2
MD12.doc, printed on 5/2/02, at 4:19 PM
What's Next
In this chapter, you learned how you can control naming and datatype standards in
ModelMart data models. The next chapter explains the how to synchronize an ERwin
data model in ModelMart and a BPwin business process model in ModelMart.
14–3
16MM4115.doc, printed on 5/8/02, at 4:43 PM
15
Chapter
T
he ModelMart Synchronizer is an independent application that you can use to
synchronize an ERwin data model in ModelMart with a BPwin business process
model in ModelMart or vice versa.
The synchronizer enables you to reuse the shared aspects of data and process
modeling, allowing a controlled movement of entity and attribute descriptions between
ERwin and BPwin, in either direction. In business applications, this synchronization
allows you to verify that your business processes are supported by their information
systems.
If you select the synchronizer from the programs list, the ModelMart Connection
Manager will automatically open. To connect, follow the instruction in the chapter
“Join the Workgroup.”
If you are already connected to ModelMart, you can open the dialog by selecting
15–1
16MM4115.doc, printed on 5/8/02, at 4:43 PM
15–2
16MM4115.doc, printed on 5/8/02, at 4:43 PM
NOTE: If you run the Synchronizer with the target model open, you will
need to refresh the model in order to complete the
synchronization. For details, see Refresh in the chapter “Manage
Changes to Models.”
Buddy Tip—For details, search the online help index for ModelMart Synchronizer.
15–3
MD12.doc, printed on 5/2/02, at 4:19 PM
16
Chapter
What target databases does ERwin support when coupled with ModelMart?
ERwin supports more than twenty leading SQL and desktop databases, regardless of
whether it is used with ModelMart or not. For example, a ModelMart hosted on an
Oracle database could manage data models for any number of databases, ranging from
Access to DB2.
16–1
MD12.doc, printed on 5/2/02, at 4:19 PM
16–2
MD12.doc, printed on 5/2/02, at 4:19 PM
16–3