Allow activate command right after deactivate

0 votes
asked Feb 2 in Question / help by arunc (120 points)

When using activate followed by deactivate, I see this error.


Is there a way to allow activate followed by deactivate? Without this the diagram that gets generated is not exactly right. See sequence numbers 4, 5, & 6 in the sequence diagram below.

skinparam defaultFontName Consolas
skinparam defaultFontSize 16
skinparam roundcorner 10
skinparam activityFontName Consolas
skinparam sequenceLifeLineBackgroundColor pink
skinparam sequenceMessageAlign center

actor User as User
participant "Store" as Store

activate User
User -> User : Take a photo

activate User
User -> User : Crop the regions
User -> User : Adjust the colors
User -> User : Save in gallery
deactivate User
User -> User : Finish photo capture
deactivate User

User -> User : Visit store
activate User
activate Store
User -> Store : Purchase food
Store -> Store : 
deactivate Store
deactivate User

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.