Trouble with partition position

0 votes
asked Aug 6, 2019 in Question / help by Mike (140 points)

Hi,

I try to specify position (left or right) of several partitions : it is working great for the first declaration, but evry partition goes to the right at the end.

Here is my test :

@startuml

partition "My Partition" {
(*) --> "Step1" <<Stage>>
--> "Step2" <<Stage>>
--> (*)
}

partition "First left partition" {
"Step1" -left-> First left Action <<Bash>>
}

partition "First right partition" {
"Step1" -right-> First right Action <<Bash>>
}

partition "Second left partition" {
"Step2" -left-> Second left Action <<Bash>>
}

partition "Second right partition" {
"Step2" -right-> Second right Action <<Bash>>
}

@enduml

Is there anything I am making wrong ?

Thanks for your attention.

Mike

1 Answer

0 votes
answered Sep 4, 2019 by anonymous
selected Nov 6, 2019 by Mike
 
Best answer
I dont know the answer, but this works. There is a unknown strategy of positioning in plantuml

    @startuml

    partition "My Partition" {
    (*) --> "Step1" <<Stage>>
    --> "Step2" <<Stage>>
    --> (*)
    }

    partition "First left partition" {
    "Step1" -left-> "First left Action" <<Bash>>
    }

    partition "First right partition" {
    "Step1" -right-> "First right Action" <<Bash>>
    }

    partition "Second left partition" {
    "Step2" -left-> "Second left Action" <<Bash>>
    }

    partition "Second right partition" {
    "Step2" -right-> "Second right Action" <<Bash>>
    }

    "Second left Action" .[hidden]u.> "First left Action"

    @enduml
commented Sep 25, 2019 by Dhananjay
Hi,

How to Accomplish this with Beta Version of Language?

Thanks,

Dhananjay
commented Nov 6, 2019 by Mike (140 points)

Thanks for this workaround that is effectively documented here : http://plantuml.com/class-diagram Ā§Help on Layout

...