Skip to content

Console command to check process models and form schemas of a deployment for consistency #36

Todo

Description

@schmunk42

Problem

A deployment consists of process models and the form schemas they refer to, and almost nothing checks that the two fit together. Unknown extension attributes in BPMN and unknown keywords in a JSON schema are ignored by the engine, by JSON Schema and by this bundle, so a typo or a lost reference shows up as an empty or wrongly rendered form at runtime, never as an error. The only check today is one direction: a formKey without its schema is noticed when the form is requested.

Proposal

A console command that checks the files of a deployment (a directory, or the resources of a deployed bundle) for consistency and reports findings with a severity:

Class Check
Allow-list every flowable: attribute used in the models is on a configurable list
Allow-list every x- keyword and every format value used in the form schemas is on a configurable list
Wiring every formKey has its <formKey>.schema.json in the deployment
Wiring every schema in the deployment is referenced by a formKey
Wiring every user task carries a formKey
Variables every variable used in a conditionExpression is set somewhere (form property, start variable, a declared external source)
Variables every {{ variable }} placeholder in a form schema names a known variable
Model every exclusive gateway has a default flow
  • The allow-lists are configuration that an application extends, not code; the bundle ships the entries it implements itself.
  • Each check has a default severity (error or warning) that can be overridden; warnings do not fail the command unless a strict mode is set.
  • The exit code reflects the findings, so the command can run in CI.

Relation to #27

#27 is a security check before deployments over MCP (does the model run code on the engine). This issue is about the consistency of model and forms, for the author of a deployment. The two could share the code that reads the BPMN files, and they answer different questions; neither replaces the other.

Open questions

  • Does the command read files from disk only, or also a deployment that already sits in the engine?
  • Format of the allow-list (YAML in the bundle configuration, a file per application)?
  • How does an application declare variables that its own code sets, so that the variable checks do not report them?
  • Should the upload commands and operations be able to run the checks before deploying?

Out of scope

The vocabulary of an application (its own group names, its own keywords beyond the configured list) and the resolution of selection targets against an application's own resources stay in the application; the application adds them as its own checks or list entries.

Context

Counterpart of mlr/za7-fogu-api#84. Related: #27.

Activity

  1. self-assigned this
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions