ZenUML — Control the order of participants

XiaoPeng
ZenUML
Published in
1 min readJun 27, 2018

With the latest version of ZenUML (www.zenuml.com), you can control the order of participants.

You were able to do this:

But sometimes you want to put ‘B’ ahead of ‘A’. Now you can pre-declare any participants.

B appears before A because it is declared first

Some tips:

  1. Participant declaration must be the first lines in the code.
  2. The declaration also works for async messages — B A A->B: any message .
  3. You can edit the code in codesandbox.io directly. Try https://codesandbox.io/s/2wy0pp9k2y?module=%2Fsrc%2Fsamples%2FSample.seq

--

--