Draw on the right, write (Umple) model code on the left. Analyse models and generate code. This tool stores your data in cookies and on a server. I understand. Click to learn about privacy. Download Donate For help: User manual Ask questions Report issue
// In this example, the system will transition to s2 automatically // when the do activity ends class X { sm { s1 { entry / { System.out.println("Starting first sleep"); } do { Thread.sleep(2000); System.out.println("Ending first sleep"); } -> s2; } s2 { entry / { System.out.println("Starting second sleep"); } do { Thread.sleep(2000); System.out.println("Ending second sleep"); } } } public static void main(String [ ] args) { X x = new X(); } } //$?[End_of_model]$? // @@@skipcppcompile - Contains Java Code // @@@skipphpcompile - Contains Java Code // @@@skiprubycompile - Contains Java Code // @@@skippythoncompile - Contains Java Code