I'm modeling shipment creation sequence diagram.
User creates shipment request -> system checks container/voyage candidates (reference to generate candidates diagram).
(1)If candidates exist -> user selects or declines.
(2)If no candidates -> shipment marked as pending, freight forwarder notified.
Now 3 possible paths:
(a) User cancels the shipment.
(b) User waits, and eventually freight forwarder may create a voyage that can transport user shipment, when creating the voyage (voyage creating sequence diagram) it checks all pending shipments to assign possible candidates (also reference the generate candidates diagram), if a possible candidate found for our shipment notifies user and back to (1).
(c) Freight forwarder does nothing or creates a voyage schedule that does not align with our shipment's route, and the shipment request remains pending until timeout.
The key challenge is how to represent the possibility of (b), the voyage being created later, which is not a direct result of the initial interaction, it may or may not happen at some point in the future.