Complete Example
Complete example: a user submits a reimbursement form.
Guide
Trigger receives the submission request. The flow first enters Branch to check whether the user is logged in. If not, it goes directly to End and returns no permission.
If the user is logged in, the flow enters a Domain Service and calls the reimbursement processing service. Inside that service, Logic validates and organizes reimbursement data, Data saves the reimbursement form, Branch decides the approval route based on amount, and End outputs the processing result.
The outer flow can then call another Domain Service to send notifications, and finally enters End to return submission success.