Sequence Diagram: Place new participant next to the creator

0 votes
asked Mar 29, 2017 in To be sorted by JanB (120 points)
Is it possible to place a new participant between already created participants. For example:

 

@startuml

participant A

participant C

participant D

A -> C

C -> D

D --> C

C --> A

create B

A -> B

B -> C

C --> B

@enduml

So, in this example I want to place B between A and C. After interactions between A, C and D the participant A creates B and B should not point backwards to interact with C.

1 Answer

0 votes
answered Mar 29, 2017 by plantuml (295,000 points)
selected Mar 29, 2017 by JanB
 
Best answer

You can do:

@startuml
participant A
participant B
participant C
participant D
A -> C
C -> D
D --> C
C --> A
create B
A -> B
B -> C
C --> B
@enduml

Result:

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

commented Mar 29, 2017 by JanB (120 points)
Oh, I've tried this but it didn't worked. So obviously I've made a mistake in my trial. Thanks a lot!
...