(--------)
Here is a proposal:
@startuml switch (find record in table?) note left first note end note case ( a ) note left note a end note :action a; case ( b ) note right: note b :action b; end endswitch :end; @enduml
Regards.