Solid Line
A solid line represents a synchronous message, where the sender waits for a response from the receiver before continuing its processing. When an object sends a message along a solid line, it will pause its execution and wait until it receives a response or until the message is processed by the receiver.
For Example:
In a banking system, a customer sends a request to withdraw money.
The customer’s account object sends a synchronous message to the bank’s account object, which processes the request and sends a response back to the customer’s account object.
What is the Difference between Solid and Dotted Line in Sequence Diagram?
In Sequence Diagrams, solid and dotted lines are used to show different kinds of messages between objects.
- A solid line represents a message where the sender waits for a response from the receiver before continuing.
- A dotted line represents a message where the sender does not wait for a response and continues right away
Contact Us