activity diagrams, cannot fork to rectangle (token, object with state)

0 votes
asked May 22, 2018 in Question / help by magowiz

Hi,
I'm trying to reproduce in plantuml an activity diagram example that has got a fork which lead to another state and to a token (object with state).

Since I cannot find such object I decided to implement it as a rectangle with needed text, anyway png generation gives me syntax errors .

@startuml
|Customer|
start
:Order product;
fork
    :Pay;
fork again
    rectangle rectangle [
    <u>:Order</u>
    ~[placed&#93;
]
end fork;

with the code above I get "Syntax error : did you mean "- rectangle rectangle [" ?
Is there a way to get what I need ?
Thanks in advance

1 Answer

+1 vote
answered May 23, 2018 by Serge Wenger Work (11,050 points)

Hello,

To create a rectangle you mist use the following syntax:

@startuml
|Customer|
start
:Order product;
fork
    :Pay;
fork again
:<u>:Order</u>
    ~[placed&#93;]

end fork;
@enduml

commented May 23, 2018 by magowiz (110 points)
thank you very much, it worked
...