Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Optional function parameter indication in UML Sequence Diagram

Is there any formal way to signal that a function parameter is optional?

For example, in this image:in this image

I want to inform that the nodes_clicked parameter could be populated or left empty.

Thanks.

like image 501
javi0unavailable Avatar asked Mar 25 '26 08:03

javi0unavailable


1 Answers

Optional parameters are nothing handled in UML as it's jus "syntactic sugar" compilers implement to make coders happy. You can mimic that in a SD with a note attached to the message. However, I just would not go to that detail and leave it to the coder (they aren't children you have to tell each single step to take).

like image 145
qwerty_so Avatar answered Mar 28 '26 02:03

qwerty_so



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!