From ab9cc192bae56b3ec2fbf2ee1ae6981594a78e03 Mon Sep 17 00:00:00 2001 From: zichun Date: Thu, 9 Apr 2026 13:33:34 +0800 Subject: [PATCH] docs(progress): pin REF.1 commit ref --- PROGRESS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PROGRESS.md b/PROGRESS.md index 911d152..98ce552 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -10,11 +10,11 @@ | | | |---|---| -| **Latest version** | v0.20.4 (handler-side PluginContext — plug-in workflow mutates its own DB) | -| **Latest commit** | `7b2ab34 feat(ref-plugin): PlateApprovalTaskHandler mutates plate state via PluginContext` | +| **Latest version** | v0.21.0 (REF.1 — plug-in BPMN publishes event, pbc-production auto-creates WorkOrder) | +| **Latest commit** | `3027c1f feat(workflow): REF.1 — plug-in BPMN publishes WorkOrderRequestedEvent → pbc-production auto-creates WorkOrder` | | **Repo** | https://github.com/reporkey/vibe-erp | | **Modules** | 19 | -| **Unit tests** | 275, all green | +| **Unit tests** | 278, all green | | **End-to-end smoke runs** | An SO confirmed with 2 lines auto-spawns 2 draft work orders via `SalesOrderConfirmedSubscriber`; completing one credits the finished-good stock via `PRODUCTION_RECEIPT`, cancelling the other flips its status, and a manual WO can still be created with no source SO. All in one run: 6 outbox rows DISPATCHED across `orders_sales.SalesOrder` and `production.WorkOrder` topics; pbc-finance still writes its AR row for the underlying SO; the `inventory__stock_movement` ledger carries the production receipt tagged `WO:`. First PBC that REACTS to another PBC's events by creating new business state (not just derived reporting state). | | **Real PBCs implemented** | 8 of 10 (`pbc-identity`, `pbc-catalog`, `pbc-partners`, `pbc-inventory`, `pbc-orders-sales`, `pbc-orders-purchase`, `pbc-finance`, `pbc-production`) | | **Plug-ins serving HTTP** | 1 (reference printing-shop, 7 endpoints + own DB schema + own metadata + own i18n bundles) | @@ -102,7 +102,7 @@ That target breaks down into roughly 30 work units across 8 phases. About **22 a | # | Unit | Status | |---|---|---| | REF.0 | Hello-world plug-in (PF4J + Plugin lifecycle + endpoints + own DB) | ✅ DONE through v0.6 | -| REF.1 | Real BPMN workflow handler (quote → job card) | 🔜 Pending — depends on P2.1 | +| REF.1 | Real BPMN workflow handler (quote → job card) | ✅ DONE — `3027c1f` — plug-in BPMN publishes `WorkOrderRequestedEvent` (new api.v1 event); pbc-production's `WorkOrderRequestedSubscriber` reacts by creating a DRAFT WorkOrder via `WorkOrderService.create`. Idempotent on event code. Plug-in has zero compile-time coupling to pbc-production; pbc-production has zero knowledge the plug-in exists. | | REF.2 | Plate / ink / press CRUD as customer-style domain | ✅ Partial — plate + ink CRUD live (`7af11f2`) | | REF.3 | Reference forms + automation rules in plug-in metadata | 🔜 Pending — depends on P3.3, P3.4 | -- libgit2 0.22.2