O cenário
This diagram models the interactions between an employer, a labourer, and a payment gateway in a hire labour system. The employer hires labour, verifies work, and processes payment. Payment processing includes invoice generation and may be extended with cancellation on failure. The payment gateway is an external actor.
O que há neste desenho
Entenda as decisões por trás dele.
01
Use of extend for payment failure allows cancellation as an optional flow
02
Include for payment gateway integration encapsulates the payment processing step
03
External actor for payment gateway separates system boundaries
Use this pattern when designing a platform where employers hire gig workers and payment is contingent on work verification, typical in gig economy or freelance marketplaces.