controller_calls_service.puml
PlantUML source of a sequence diagram from the 4 approaches to handling service objects' returns post.
@startuml
participant Controller
participant Service
Controller -> Service: call(params)
note right
**Step 1**
Service is called with given params
end note
Service -> Service: ...
note right
**Step 2**
Service interacts with other objects (eg. ActiveRecord models)
to perform a certain use case
end note
Controller <-- Service: success/failure
note right
**Step 3**
Service gives control
back to the controller
end note
@endumlDownload controller_calls_service.puml
PlantUML draws diagrams from plain text.
Paste the source into the online server,
or render it locally with plantuml -tsvg controller_calls_service.puml.