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
// UML State machine for an airline flight with nested state, written in Umple class SpecificFlight { Boolean finished; Boolean empty; state { planned { assignPlane -> planeAssigned; cancel -> cancelled; } planeAssigned { readyForPassengers -> boarding; changePlane -> planned; cancel -> cancelled; } activeWithPassengers { evacuate -> disembarking; waitingForNextLeg { readyForPassengers -> boarding; } boarding { boardingComplete -> closedAtGate; } closedAtGate { permissionToDepart -> underway; } underway { arriveAtGate -> disembarking; } disembarking { passengersOut [!empty] -> waitingForNextLeg; passengersOut [finished && empty] -> completed; passengersOut [!finished && empty] -> planeAssigned; } } completed {} cancelled {} } }