Unified Workflow Management (UWM)
Problem
Teams create BAMOE/Kogito workflows by writing BPMN XML by hand and pushing it directly to application repositories. This process lacks a review gate, version history beyond Git itself, and a way to start from a PDF or plain-language description.
Solution
A canvas-based studio uses an LLM to draft BPMN workflows, which users can refine visually or through chat before submitting them as GitHub pull requests. Git remains the source of truth; UWM does not add a separate version counter.
Workflow
- Users draft a workflow by uploading a document, describing it, or importing an existing definition, then refine it on the canvas.
- Commit opens a draft pull request; Create PR marks it ready for review. A merge webhook marks the workflow as Deployed.
- Each
(app, source branch)has one draft. If the source SHA is stale, the service returns409rather than overwrite a teammate’s changes. - Merge detection uses a webhook and on-demand reconciliation; there is no polling.
Auth
- PingFederate OAuth2 authorization-code flow is implemented in
domains/auth. - A shared FastAPI
get_current_userdependency provides user context. Each domain adopts route guards as needed.
Data
- PostgreSQL, accessed through async SQLAlchemy, stores drafts and definitions.
- Kafka events are published through a transactional outbox.
- Google Cloud Storage stores uploads, with a local-disk fallback.
UI
- Angular 21 uses the CVS component library and Internal Pulse theme.
- Signal stores manage state without NgRx. The KIE BPMN editor runs in an iframe, while the parent application owns persistence.
Platform
- A single FastAPI entrypoint composes
domains/(auth, authoring, registry, and delivery),gateways/(LLM, GitHub, and BAMOE), and sharedplatform/libraries. - Gateways contain no domain logic.
- The app runs on CAP, and Langfuse traces every LLM call.
Impact
- Replaces ad-hoc BPMN XML edits with a reviewed, auditable path from idea to pull request.
- Lets people who do not author BPMN start from a document or a short description.
- Keeps deployments on the existing PR → CI → GitOps → AKS path; UWM does not bypass it.
The fun challenge
Valid BPMN is not always buildable BPMN. Kogito code generation rejects generic <task> elements and workflows missing gatewayDirection, even though both are allowed by the BPMN specification and can be emitted by bpmn.io or the LLM. The repository also has no engine for runtime testing.
- Pure-function fixups in
platform/bpmn/kogito_fixups.pynormalize BPMN before delivery. - A Langfuse-backed evaluation harness runs golden, adversarial, and Kogito-specific suites to verify that model output follows these rules.
- A regression gate blocks CI if evaluation pass rates fall below the previous best run.
- Together, the fixups and evaluation gate stand in for the missing runtime and hold generated workflows to the Kogito contract, not just the BPMN specification.