allow_mixing doesn't work with sequence diagram

0 votes
asked Dec 13, 2018 in Bug by rsandeepu (190 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

ANOTHER EXAMPLE  OF WHAT We want to do is HERE:

http://www.plantuml.com/plantuml/png/ZP2zJyCm4CLt_nLMcJEGTkg0ceI53I4sLA4ZjOA5Fv1zKH68_vtwOaMsewWipn_lvtTtFdW4XwDM39IovrSjlwGPc1CzWXcKu9kcH-jui-7W-RFzf6Ep1hGMqUebys0aIb3o6r1QGsYuofYdSJ8kQtRVAUi5ERHhsDm5hqxsR5vktXJq7ySgHfAM5eK6AOsOIKjfvkCiPswpJsbNW3IbBGQUWB1XSqpP1Bb1IYFBNHRlikww5I1DwOhk9Y1is1nJDa5kaCB8S-FNEpcyOtMNZ9GUCl_ofbVWFNzqTd2Wxm7XXmMz9Qr9jwGxzXiBXFAZECQSzEr-Js-fq7Mk_YUtfT6lSpjs4EOqQlK7

2 Answers

0 votes
answered Dec 13, 2018 by mgrol (2,740 points)

Hi,

I don't think the answer you got is much different from the one you got in http://forum.plantuml.net/7728/allow_mixing-doesnt-work-with-sequence-diagram, which states: "It does not really make sense to mix up sequence and class diagram." As a side remark, this is rather a feature request than a bug in plantuml.

I think your provided example is good enough to understand what you want to achieve. You want to describe a sequence that hands over something like a shared container object or data transfer object that fills in the data. I tried other uml tools on the mixing. Don't pin me down on that, but neither argouml nor papyrus were able to mix those two. Mixing a behavioral and a structural diagram sounds rather complex to understand for the reader of your diagrams.

BR,

Michael

0 votes
answered Dec 13, 2018 by plantuml (195,380 points)

Maybe you should post a simpler example of what you are trying to do.

For example, here is a simple sequence diagram:

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIe0qfd9cGM9UIKAIcwPHSKb2iuvYSN5IWg9nGgE2ZOs2XhEEigEBYw6JaQQ2dPs2gWwWbEJy_DIaBGuOTF2vQYWQwVWPAMGd9YJev2RMfAHdsB8nUMGcfS2T0C0

@startuml
participant "First Class" as A << (C,#ADD1B2) >>
participant "Second Class" as B << (C,#ADD1B2) >>

A -> B: call method1
@enduml

And here is a simple class diagram:

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuKhEIImkLb1ooomgBb5m1d6K51AB5Hov71LiQdHr5TBoymsHs4PSN0wfUIb0dG00

@startuml
class "First Class" as A
A <|-- foo1
A <|-- foo2
@enduml

Mixing both would give something like:

Is this really what you want to do ?
So what we better understand your need, please use some image editor to manually create the diagram you want and post it to https://imgbb.com/

It will really help us!

...