Reputation: 3267
I'm fairly new to Visual Paradigm and I noticed the auto-numberign feature on the messages of the sequence diagram, which I like a lot since it gives you a visual guidance specially when the diagram gets really large. Then I found myself in a situation like this one in this fragment where I did not agree with the number it assigned message PIN Entered. Although I thought I could just manually change it to what made more sense to me, a 1.4, my question is: is there a way to make VP notice the relation of continuity between Request PIN and PIN Entered without just adjusting the values manually?
Upvotes: 5
Views: 16321
Reputation: 484
Regarding on how to set different ways of numbering sequence messages in Visual Paradigm, you should read the section "Setting different ways of numbering sequence messages" from the How to Draw Sequence Diagram? guide from Visual Paradigm.
In summary, just right click on the diagram's background, select Sequence Number and then choose your option from the pop-up menu.
Regarding your specific example, as @sim has already answered, the diagram you have provided is wrong. If we read just the diagram, it says:
It only makes sense that the ATM Custmer enters the PIN only when the card is valid. Therefore that sequence message (that reply) should be a reply to the Request PIN message. Something like this:
And as @Sim has also already suggested, it's a good idea to use separate sequence diagrams for different scenarios.
Upvotes: 7
Reputation: 1168
Obviously you are using the sequence diagram as an analysis tool, not a design tool. In such a usage it can be ok to use the syntax in a less strict form. Thought, this makes it hard for a program to determine what you are modelling and what is your intended sequence.
In your modelled sequence, you return a PIN in the reply message 2.2, but this makes only sense as reply to message 1.3. As message 1.3 and 2.1 are different, it is not possible for a program to determine to which message the reply message belongs. I propose to clean up the diagram and e.g., abort after returning the card or even better, use seperated sequence diagrams for main success scenarios and aborting scenarios.
Upvotes: 2