Split, run in parallel, aggregate, durably
A trigger starts a long job: a tree of processes stored in your database. Each one walks a state machine; every consequence of every step is written to a durable outbox in the same transaction; workers in their own deployables do the splitting, the work and the aggregation and report back; and when the job ends, the next one in the chain begins.
Exchange
Payload
Nothing is lost, and no XA
A state change and the commands it causes (start a worker, create a child, signal the parent, announce completion) commit together in one database transaction. A dispatcher runs them later, with retries and a dead-letter state for replay, so no distributed transaction with the broker is needed.
Nothing is counted twice
Delivery is at least once, so every effect has an idempotency key: a child counts toward its parent once, a successor starts once, a worker start is recorded once, whatever is replayed.
Workers scale apart, per client
Workers are plain typed listeners in their own deployables, which never touch the process database; JGen generates the server and the workers separately. Topics can be named per client, so each client's workers scale on their own and no client is a noisy neighbour.