src/samples/3rdparty/basicconcept-book.msc
# found on
# http://leon.work.billydev.com/projects/billypds.core/tools/doc/sequence/
msc {
hscale="1.5", arcgradient="5";
# The entities
BILLY,YOU,VISITOR;
#--- [ label = "" ];
# Small gap before the boxes
|||;
# some arrows
VISITOR=>YOU [ label = "I want to book property X!", linecolor="green" ];
YOU=>BILLY [ label = "is it still available? (info.xml)", linecolor="green" ];
YOU<=BILLY [ label = "yes\nno", linecolor="green" ];
YOU=>VISITOR [ label = "show booking form\nsorry, already booked" ];
VISITOR=>YOU [ label = "book it!", linecolor="green" ];
YOU=>BILLY [ label = "call booking_create.xml", linecolor="green" ];
BILLY=>YOU [ label = "return booking (*)\nerror", linecolor="green" ];
YOU=>VISITOR [ label = "demand payment\nsorry, already booked" ];
YOU<=VISITOR [ label = "visitor payed within 60 mins\nvisitor will pay later" ];
YOU=>BILLY [ label = "call booking_finalize.xml\ncall booking_pending.xml", linecolor="green" ];
BILLY=>YOU [ label = "return booking (*)\nerror", linecolor="green" ];
YOU<=VISITOR [ label = "receive money\nvisitor cancels" ];
YOU=>BILLY [ label = "call booking_finalize.xml\ncall booking_cancel.xml", linecolor="green" ];
BILLY=>YOU [ label = "return booking (*)\nerror", linecolor="green" ];
YOU>>VISITOR [ label = "notify/send email etc" ];
|||;
BILLY rbox VISITOR [label="Booking complete", textbgcolour="#7fff7f" ];
YOU=>>YOU [ label = "lean back, drink coffee" ];
}