@startuml !unquoted function DRAW($x) return %set_variable_value($x, 1) !procedure $addComponent($part, $component, $as) !if %variable_exists($part) participant "$component" as $as !endif !endfunction !procedure $addBox2($part, $box, $colour, $data) !if %variable_exists($part) box "$box" #$colour !foreach $item in $data.participants $addComponent($part, $item.name, $item.as) !endfor end box !endif !endfunction DRAW(PART25) !ifdef PART25 title TESTING (Boxes & Participants) Part25 !endif !$data={"participants" :[ {"name": "XYZ" ,"as": "xyz"}, {"name": "RST" ,"as": "rst"}, {"name": "UVW" ,"as": "uvw"} ] } $addBox2("PART25", "New Box", "white", $data) xyz->rst : Message() xyz<--rst : Ack() xyz->rst : Message2() xyz->uvw : Message3() @enduml
Submit
Switch layout
PNG
SVG
ASCII Art
You can enter here a previously generated URL:
Submit
(
Page generated in ?? ms
/
page loaded in ?? ms
/
image loaded in ?? ms
)