Perforce Integration
Introduction
Perforce is a Software Configuration Management system which lets developers manage the changes they made when developing software. All Visual Paradigm client products are integrated with Perforce to facilitate collaborative modeling. Your team can use Perforce repository to store project files, keep track of changes and perform modeling concurrently.
Teamwork Server, another product of Visual Paradigm, is not required for integrating with Perforce. The integration is supported in the following products (and editions):
| Products | Edition |
| Visual Paradigm for UML | Standard or above |
| Smart Development Environment | Standard or above |
| DB Visual ARCHITECT | Java, PHP, .NET and Professional |
| BP Visual ARCHITECT | Analyst |
| Agilian | Standard |
* The viewer edition of all products support check-out and update Visual Paradigm project from Perforce server.
In this page, we will describe how to work collaboratively using Perforce. Operations such as importing a project into Perforce repository, committing a project to server, and updating a project from server will be covered.
Importing a project to Perforce Server
Developers who take part in the project can import a Visual Paradigm project to Perforce Server. To import a processing project:
Select
Tools > Teamwork > Open Teamwork Client... from the main menu (or click on the
Open Teamwork Client button on the toolbar).
This shows the
Login to the Teamwork Server dialog box, select
Perforce as
Server and fill in the fields. Then click
OK to connect to the server.
| Field | Description |
| User name | The name of user under which to connect |
| Password | Password for user |
| Perforce path | The path of the p4.exe file |
| Host | The address of the host |
| Port | The port number assigned to the Perforce server |
This shows the
Manage Project dialog box, which is for selecting a project file to work with. Click
OK to skip this dialog box.
This shows the
Teamwork Client dialog box, select
Project > Import Project to Repository (or click on the
Import Project to Repository button on the toolbar).
This shows the
Import Project dialog box, enter the name of the project, specify the source of the project to import to the Perforce server and select the repository where the project imported. Then click
OK.
| Option | Description |
| Currently opened project | The project that is opened in the running application |
| Create new project | A blank and a new Visual Paradigm project |
| Import existing project | An external project file |
Now the project is imported.
Checkout a project
By importing a project to the server, clients can check that out from the Perforce Server to the local machine.
Select
Tools > Teamwork > Open Teamwork Client... (or click on the
Open Teamwork Client button on the toolbar).
This shows the
Manage Project dialog box, select the project you want to open, click the
Add Selected button to add the project.
Then click
OK.
When it returns to the
Teamwork Client dialog box, select the project and click
Checkout.
By checking out a project you get a copy of the teamwork project, in order to work with the project, you need to open it in the application.
To open a teamwork project, click
Open Project.
Committing a project
When a project is edited in the local machine, the changes can be made available on the project in the server. This can be done via committing the project to the Perforce Server.
Select
Tools > Teamwork > Commit... (or click on the commit button on the toolbar).
This shows the
Commit Project dialog box, enter the description of the change and click
OK.
This shows the
Commit Model(s) dialog box. It will show you the changes will be made to the server copy of the project. Click
OK to commit.
A conflict might be found if the change(s) made by someone else cause conflict to the change(s) you made. You must resolve all the conflicts to proceed with committing the project.
There are two ways to resolve a conflict,
Overwrite or
Revert. By Overwriting, the server version will be overwritten by the local version for that particular change. By Reverting, the server version will be selected.
Updating a project
The update project function updates the project by downloading changes, made by the other team members from the Perforce repository to the client’s computer.
Select
Tools > Teamwork > Update (or click on the Update button on the toolbar).
This shows the
Update Model(s) dialog box, it will show you the changes updated. Click
OK to access the latest version of the project.
Resources
Visual Paradigm for UML Home
Business Process Visual ARCHITECT
DB Visual ARCHITECT
SDE Home
Download Free Community Edition of Visual Paradigm for UML
Download Business Process Visual ARCHITECT