OneCaseOnePlan

Problem

Bulk case creation runs through a BAMOE (Kogito) workflow engine. Operators had no straightforward way to submit a batch, track its progress, or correct validation failures without using the engine’s REST and GraphQL APIs directly.

Solution

An Angular SPA and a single FastAPI process provide a small, focused interface to the engine. One container hosts the app and mounts three independent services: ocop_bamoe, auth_pingid, and db_cap. The application makes direct calls to the engine; there is no message broker, replacing the original Kafka/JBE design.

Workflow

  • Excel uploads are checked for the expected sheets and columns, converted to JSON records, and submitted as a caseCloneCreate process.
  • Progress is retrieved from the GraphQL data index and displayed as a five-stage strip derived from BPMN node timestamps.
  • Rows flagged for review go through BAMOE’s native user-task API. Reviewers can edit each record, then accept or reject it.

Auth

  • PingFederate/PingID Authorization Code flow with a confidential client.
  • The backend exchanges the authorization code, so the browser never receives the client secret.
  • Tokens are verified against the RS256 JWKS. Single-use state protects against CSRF, and a shared claim-alias table handles inconsistent IdP claim names.

Data

  • PostgreSQL accessed through async SQLAlchemy and asyncpg.
  • An append-only audit_events table stores logins, uploads, and review decisions as JSONB payloads, allowing new event types without a schema migration.
  • CAP_ENVIRONMENT selects between local credentials and Cloud SQL IAM authentication.
  • Tests use in-memory SQLite.

UI

  • Angular 20 standalone components with signals and no state library.
  • CVS cvs-base shell with idle-timeout handling.
  • Pages: Upload, Workflow, Human Review, Audit, and Admin.

Platform

  • Deployed to the CVS Application Platform (CAP) as a multi-stage Docker build using the CAP-approved distroless Python image.
  • Dependencies are resolved through Artifactory mirrors.
  • GitHub Actions promotes releases through dev → qa → uat → main, using semver image tags.
  • More than 150 backend tests.

Impact

  • Operators can submit, monitor, and correct case batches without interacting directly with the workflow engine.
  • Every user action is auditable.
  • Outcomes are not yet quantified; useful measures include batches per week, operator hours saved, and validation error rates.

The fun challenge

BAMOE does not expose a current-stage field. The app reconstructs progress from BPMN node timestamps and presents it as a five-stage workflow summary.