A unit of work: business logic that runs in one database transaction, for one actor, and seals the transaction it
is handed with commit() or rollback(). It never opens a transaction of its own and never runs another unit of
work — whoever triggers it (an action, an audited command, an audited job) composes units of work; a unit of work
composes plain operations.
An action's handler is one already ({@see \LaravelUi5\Sdk\Action\Contracts\SdkActionHandlerInterface}). A unit of work that is no handler is declared in its module like any artifact; its name comes from that declaration.
| Methods | ||
|---|---|---|
public
|
handle(BusinessTransaction $transaction, BusinessContextInterface $context, SdkContext $sdk): Outcome
|
# |