- Download Online Book Store.vpp. You can also find this file at the bottom of this tutorial.
- Open the downloaded .vpp file in Visual Paradigm. To open a project, select Project > Open from the application toolbar.
- Let's take the following UML sequence diagram as an example:
- Assume you need to specify the time limit between Browse message and Book List message, you therefore, have to add duration constraint between them. Move the mouse over Browse message and press Duration Constraint button.
- Drag it from Browse message to Book List message and then release the mouse.
- Enter the constraint detail inside the caption. For example, it should take more than 3 seconds but less than 5 minutes. You can enter > 3s & < 5mins.
- The duration constraint between Browse message and Book List message is shown below:
- On the other hand, you can add duration constraint not only between two message, but also on the message itself. Let's try to add duration constraint on Query message. Move the mouse over Query message and click Duration Constraint button.
- Assume it should take less than 10 seconds. Enter < 10s inside the caption.
- The duration constraint for Query message is shown below: