Build Actions

Build a feature's action-database — async orchestration over services and transactions. If the feature has async flows or side effects outside of the main store.

Adobe 791e40f 717 B Updated 142 repo stars

File contents

Skip if this feature doesn't contain or require actions.

Create services/main-service/action-database/: action-database.ts (extends ServiceDatabase, adds actions from ./actions/index.js) plus an actions/ folder — one async orchestrator per file. An action takes db: ServiceDatabase, awaits services/ ports, then commits exactly one transaction.

The top main-service layer; comes after service-database.

The how is in the auto-loading features/services/main-service/actions.md rule.

adobe/data/tree/main/packages/data-ai/skills/build-actions commit 791e40fcf5

Frequently asked questions

npx skillmds@latest add adobe/build-actions