CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Maritime, Ports & Shipping

🚒 Maritime, Ports & Shipping · State Machine

Shipping Container States

The states a shipping container goes through in an export journey, from empty pick-up to delivery at the destination.

More Maritime, Ports & Shipping templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • Each state change is an event shared with the customer
  • Customs holds can stop a container at any port
  • Empty containers go back to the depot for reuse

Prompt used

State machine for a container: EmptyPickedUp from the depot, Stuffed at the factory, GatedIn at the origin terminal, CustomsCleared, Loaded on the vessel, InTransit, Discharged at the destination port, OnHold if customs inspects, Released, Delivered to the consignee, EmptyReturned to the depot.

Mermaid code
stateDiagram-v2
  [*] --> EmptyPickedUp
  EmptyPickedUp --> Stuffed: Loaded at factory
  Stuffed --> GatedIn: Enters export terminal
  GatedIn --> CustomsCleared
  GatedIn --> OnHold: Customs inspection
  OnHold --> CustomsCleared: Inspection passed
  CustomsCleared --> Loaded: On vessel
  Loaded --> InTransit
  InTransit --> Discharged: Arrives at destination
  Discharged --> Released: Import clearance done
  Discharged --> OnHold: Import inspection
  Released --> Delivered: At consignee
  Delivered --> EmptyReturned: Back at depot
  EmptyReturned --> [*]

Inside this diagram

A state diagram with 11 states and 12 transitions.

States

  • EmptyPickedUp
  • Stuffed
  • GatedIn
  • CustomsCleared
  • OnHold
  • Loaded
  • InTransit
  • Discharged
  • Released
  • Delivered
  • EmptyReturned

Starts in

  • EmptyPickedUp

Ends in

  • EmptyReturned

Transitions

  • EmptyPickedUp β†’ Stuffed when Loaded at factory
  • Stuffed β†’ GatedIn when Enters export terminal
  • GatedIn β†’ CustomsCleared
  • GatedIn β†’ OnHold when Customs inspection
  • OnHold β†’ CustomsCleared when Inspection passed
  • CustomsCleared β†’ Loaded when On vessel
  • Loaded β†’ InTransit
  • InTransit β†’ Discharged when Arrives at destination
  • Discharged β†’ Released when Import clearance done
  • Discharged β†’ OnHold when Import inspection
  • Released β†’ Delivered when At consignee
  • Delivered β†’ EmptyReturned when Back at depot

Make your own diagram like this

Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.

Related templates

C4 ArchitectureProMaritime, Ports & Shipping

Port Community System

A port community system that connects shipping lines, terminals, customs, freight forwarders and truckers on one platform, so documents are shared once instead of emailed many times.

SequenceMaritime, Ports & Shipping

Import Container Clearance Sequence

The journey of an import container from unloading to leaving the port: discharge, customs filing, duty payment, delivery order and gate out.

Data FlowMaritime, Ports & Shipping

Vessel Tracking with AIS

How ships are tracked worldwide: AIS signals picked up by coastal stations and satellites, cleaned, matched to voyages and used for arrival predictions.

DeploymentProMaritime, Ports & Shipping

Container Terminal Operating System

Where a container terminal's systems run: the terminal operating system in the data centre, equipment control on cranes and yard vehicles, and gates with automation.

Database ERDMaritime, Ports & Shipping

Ocean Freight Booking Schema

Tables for an ocean freight booking platform: shippers, bookings, containers, voyages, bills of lading and tracking events.

FlowchartMaritime, Ports & Shipping

Vessel Arrival and Berthing

How a port handles an arriving ship: pre-arrival notice, berth allocation, pilot boarding, tug assistance and berthing.