Protected ReadonlydbStaticinstanceThe process default: built from each dependency's own instance().
PENDING to CANCELLED, by the requester or a holder of settings/approvals:w.
Creates a PENDING request from the ACTIVE quote the user confirmed. The requirements are re-derived here, never taken from the client, and the quote is left to expire. Files are promoted before the insert, outside any transaction.
Records approverId's decision under the request's row lock. An approval
that completes every step moves the request to PROCESSING and returns
startExecution; a decline moves it to DECLINED. Eligibility is read now:
membership, the rail's keys and an open step the approver fits.
One request with its decisions and per-step state for userId.
The Tasks tabs. WAITING_ON_YOU: PENDING requests with a step userId can
satisfy and has not decided, plus PROCESSING requests userId approved
(until BE-12 can tell which need an execution retry). MINE: the user's own
requests. ALL: the workspace's. The first tab pages in memory: its
candidates are the customer's open requests.
Optionalids?: string[]OptionalincludeSatisfiable?: booleanOptionalpage?: numberOptionalpageSize?: numberOptionalproductIds?: string[]Optionalstatuses?: ("PENDING" | "PROCESSING" | "COMPLETED" | "DECLINED" | "FAILED" | "CANCELLED")[]Optionaltab?: TransactionApprovalTabOptionaltransactionIds?: string[]The transactions the requests executed; a request without one never matches.
Approval requests: create from a confirmed quote, read, decide and cancel. Recording the
transactionApproval.*activities is the caller's job, as for the rule service; each write returns the activity to record. The last approval returnsstartExecutionfor the caller to act on after commit.