Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plantuml do not support two flow in one diagram #25

Open
chenzz opened this issue Jul 20, 2019 · 1 comment
Open

Plantuml do not support two flow in one diagram #25

chenzz opened this issue Jul 20, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@chenzz
Copy link

chenzz commented Jul 20, 2019

Plantuml do not support two flow in one diagram, while mermaid support.

Could you please support this?

minimalist example as follows,

  • mermaid
sequenceDiagram
    
    note over Leader: dispatch task
    activate Leader
    Leader ->> +Worker: do something
    Worker ->> -Leader: ok
    deactivate Leader
    
    note over Worker: report status
    activate Worker
    Worker ->> +Leader: task finished
    Leader ->> -Worker: ok
    deactivate Worker
Loading

image

  • plantuml
@startuml
    note over Leader: dispatch task
    activate Leader
    Leader -> Worker++: do something
    Worker -> Leader--: ok
    deactivate Leader

    note over Worker: report status
    activate Worker
    Worker -> Leader++: task finished
    Leader -> Worker--: ok
    deactivate Worker
@enduml
@The-Lum
Copy link

The-Lum commented Jul 10, 2021

Hello @chenzz,

A possible workaround (Thanks to @SergeWenger) is to add, just after the note:
Worker -[hidden]> Worker

@startuml
    note over Leader: dispatch task
    Leader -[hidden]> Leader
    activate Leader
    Leader -> Worker++: do something
    Worker -> Leader--: ok
    deactivate Leader

 
    note over Worker: report status
    Worker  -[hidden]> Worker
    activate Worker
    Worker -> Leader++: task finished
    Leader -> Worker--: ok
    deactivate Worker
@enduml

See similar issues/requests here:

@arnaudroques arnaudroques added the enhancement New feature or request label Mar 20, 2023
@arnaudroques arnaudroques transferred this issue from plantuml/plantuml Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants