allow_mixing doesn't work with sequence diagram

0 votes
asked May 31, 2018 in Bug by rsandeepu (320 points)

The output of below script is failing with

PlantUML diagram

If i remove allow_mixing it works fine. I need to mix sequence diagrams with component diagrams or class diagrams . Can you please let me know how to mix the diagrams for the same plantuml script.

@startuml
allow_mixing
actor User
participant "First Class" as A
participant "Second Class" as B
participant "Last Class" as C

User -> A: DoWork
activate A

A -> B: Create Request
activate B

B -> C: DoWork
activate C
C --> B: WorkDone
destroy C

B --> A: Request Created
deactivate B

A --> User: Done
deactivate A
@enduml

1 Answer

–1 vote
answered May 31, 2018 by plantuml (295,800 points)
It does not really make sense to mix up sequence and class diagram.

Could you post here an image of what you are looking for ? This will help us to understand your need.

Thanks!
commented Jun 1, 2018 by rsandeepu (320 points)
Here is an example showing my requirement.
Basically i wanted to show at which stage of sequence what all members of a class are filled.
Just arranged rectangles to mimic sequence diagram for visualization in this example.

@startuml
allow_mixing
rectangle "Actor A" as TopActorA
rectangle "Actor A" as BottomActorA
rectangle "Initialization" as InitA
rectangle "Run" as RunA
rectangle "Close" as CloseA
TopActorA -down[#black]- InitA
InitA -down[#black]- RunA
RunA -down[#black]- CloseA
CloseA -down[#black]- BottomActorA

rectangle "Actor B" as TopActorB
rectangle "Actor B" as BottomActorB
rectangle "RunB" as RunB
TopActorB -down[#black]- RunB
RunB -down[#black]- BottomActorB

rectangle "Actor C" as TopActorC
rectangle "Actor C" as BottomActorC
rectangle "RunC" as RunC
TopActorC -down[#black]- RunC
RunC -down[#black]- BottomActorC

RunA -right-> RunB
RunB -> RunB
RunB -right-> RunC

class ProgramData{
Data1
Data2
Data3
Data4
}
RunA -[#blue]right-> ProgramData::Data1
RunB -[#blue]right-> ProgramData::Data2
RunB -[#blue]right-> ProgramData::Data3
RunC -[#blue]right-> ProgramData::Data4
@enduml

Or you can look at the image by using the link below:
http://www.plantuml.com/plantuml/png/ZP2zJyCm4CLt_nLMcJEGTkg0ceI53I4sLA4ZjOA5Fv1zKH68_vtwOaMsewWipn_lvtTtFdW4XwDM39IovrSjlwGPc1CzWXcKu9kcH-jui-7W-RFzf6Ep1hGMqUebys0aIb3o6r1QGsYuofYdSJ8kQtRVAUi5ERHhsDm5hqxsR5vktXJq7ySgHfAM5eK6AOsOIKjfvkCiPswpJsbNW3IbBGQUWB1XSqpP1Bb1IYFBNHRlikww5I1DwOhk9Y1is1nJDa5kaCB8S-FNEpcyOtMNZ9GUCl_ofbVWFNzqTd2Wxm7XXmMz9Qr9jwGxzXiBXFAZECQSzEr-Js-fq7Mk_YUtfT6lSpjs4EOqQlK7
commented Oct 16, 2018 by rsandeepu (320 points)
Any updates to this issue ?
...