Flowable CMMN case management

Flowable CMMN case management fits work that cannot be fixed in advance. This page covers when to choose a case over a process, how to model it, and what to verify and hand over.

On this page

When Flowable CMMN case management fits better than a process

Choose CMMN when the next step depends on facts discovered during the work rather than on a fixed sequence. Typical candidates are claims handling, investigations, complex onboarding or incident response, where a caseworker decides what to do next based on documents, findings and judgment. CMMN models what can happen and under which conditions, while BPMN models what must happen, in order. If you can draw the steps left to right and every run follows that path, a BPMN process is usually the simpler and more testable choice. If the path is decided by the people doing the work, a case is the better fit. Many organizations end up with both, and the decision is made per piece of work, not per product.

Sentries, milestones and planning rules are easy to draw and hard to get right. A sentry that fires on the wrong event, or a milestone that is never reached because its entry criterion depends on a task nobody can start, will only show up in production. Plan tests that cover each sentry in both states, that check which tasks become enabled or disabled after each event, and that confirm a case completes when it should and stays open when it should not. Ownership is the second hard part. Every human task needs a candidate group or user that maps to your identity provider, so confirm early how groups from your directory reach Flowable and who can claim, reassign or complete each task.

A case also rarely works alone. Its stages often call BPMN processes for fixed sub-steps, such as a document check or a payment approval, and call DMN decision tables for rules such as eligibility or risk tiers. Confirm which engine owns each piece, how data passes across the boundary, and what happens to open tasks when a called process fails or is waiting on an external event. Flowable's engines are Apache 2.0 licensed and offer Java and REST APIs, so you can test case models in a Java test harness and expose case work to other systems over REST. Check that your team can read, test and change a CMMN model before committing a case-heavy design, and see the Flowable open source page for the engines and their supported interfaces.

Which Flowable components a CMMN case uses

A CMMN case does not run alone. It is deployed next to BPMN processes and DMN decisions, executed by the same Flowable runtime, and exposed through Java, Spring Boot or REST. Knowing which piece runs where tells your team what to install, what to monitor and what to test before go-live.

CMMN engine and case definitions

The CMMN engine executes case definitions, which describe the stages, plan items, sentries and milestones that make up a case. Case definitions are deployed to the engine like process definitions and are versioned. Confirm with your team how case models are stored, promoted between environments and rolled back, since the case model is the artifact reviewers will read. Check that business analysts can review the model without reading Java.

Getting started docs

BPMN and DMN engines a case can call

A case can hand work to a BPMN process or evaluate a DMN decision table while it runs. The BPMN engine runs the structured process steps, and the DMN engine returns the decision result the case uses to choose its next path. Both engines are part of the same Flowable distribution, so one deployment covers all three models. Check which engine versions your models were built for before you wire calls between them.

Human tasks and candidate groups

Human tasks are where a case waits for a person to act, such as a claims handler reviewing a file or a clinician signing off a step. Each task needs candidate users or groups, which come from your identity setup rather than from the case model itself. Confirm how group membership reaches the engine and who can claim, complete or reassign work before you test case flows end to end.

Spring Boot CMMN starter

If your application runs on Spring Boot, the CMMN starter embeds the case engine in your own service, so cases share the application's datasource, transactions and deployment pipeline. Starters for the individual engines and for REST are published separately, so teams should include only the engines their cases use. Check the Spring Boot version the starter supports, since the current major line requires a specific Spring Boot release.

Spring Boot docs

REST application for HTTP access

The Flowable REST application exposes the engines over HTTP, which suits teams that run the engine as a separate service and call it from front ends or other systems. Access to the REST API must be secured by your own configuration, so decide early how callers authenticate and which operations they may call. Confirm which REST resources cover case instances and human tasks in your target version before designing client integrations.

Async executor and the actuator endpoint

The async executor runs timers and asynchronous jobs from a thread pool, and nodes coordinate through lock owners and lock expiration times in the database. Timers that drive case milestones or reminders depend on this executor running on at least one node. The actuator endpoint at /actuator/flowable reports on running processes, which gives operations teams a place to watch case activity. Ask your team how alerts will be set for stuck timers and failed jobs.

Case, process or decision: which model for each piece of work

This table compares the five ways CMMN cases, BPMN processes and DMN decisions can be combined in a Flowable design. Read each row against your own work: the option column shows the model, the other columns show when it fits and what it costs to run, including who edits it, how it is tested, how the audit trail reads and how changes reach running instances.

OptionWhen it fitsOperational cost
CMMN caseWork driven by unpredictable events and knowledge workers, such as an investigation or claim where the next step depends on what is foundBusiness analysts or case designers can edit models, but testing needs scenarios for many event orders; audit trails show activated stages, sentries and milestones; changes to running cases need a deliberate migration plan
BPMN processWork with a known, mostly fixed sequence, clear handoffs and defined gateways, such as an approval or onboarding flowDevelopers or process engineers usually own the model; testing follows the sequence paths; audit trails read as a linear history of activities; versioned deployments let new instances use the new model
DMN decision tableRules that map inputs to an outcome, such as eligibility, pricing tiers or risk bands, that change more often than the flow around themRule owners can edit tables without touching process code; testing means checking input and output rows; audit trails record the decision result, so the rule version used must be retained
BPMN process calling a CMMN caseA fixed flow that hands one open-ended part of the work, such as investigation, to a case that needs human judgmentTwo models to version and test together; the handoff contract (inputs, outputs, completion) must be tested on both sides; audit trails span two model types and need correlation
CMMN case calling a BPMN process or DMN decisionA case where a milestone triggers a repeatable sub-flow, such as document generation, or a rule evaluation that decides whether a stage activatesCase designers depend on process or decision owners for changes; testing must cover the case and each called model; audit trails link the case instance to child process or decision instances

How to build a CMMN case from requirements to a tested release

This sequence turns a business case description into a deployed Flowable CMMN case model that is verified by scenario tests. Each step ends with a check your team can observe, so you know the case behaves as intended before release.

  1. List case goals and the work that serves them

    Start with the business outcome the case must reach, such as a complaint resolved or a claim settled. Then list the work items (tasks, stages, milestones) that contribute to each goal, and note who in the business owns each one. Involve a domain expert and an engineer in this session so that the list reflects how work actually flows. The step is done when every goal maps to at least one work item and every work item traces back to a goal. Reviewers should be able to pick any item and name the goal it serves.

  2. Separate required stages from optional ones

    Mark each stage and task as required or optional, and record what triggers the optional ones. In CMMN, the distinction determines whether a case can complete without the item, so this decision has direct effects on the model. Ask the business owner which items must finish before the case can close and which are used only in exceptional paths. The check is a reviewed list where each item carries a required or optional flag and a written reason. A domain reviewer should sign off that no required item is missing from the plan.

  3. Write sentries as explicit entry and exit conditions

    For each stage, task and milestone, write the entry sentry and exit sentry as conditions on case data, events or the completion of other plan items. Vague conditions such as 'when ready' cannot be tested, so tie each one to a named case variable, a timer or a plan item state. Record the expected behavior when two sentries fire together. The check is a sentry table that a tester can execute: for each condition, there is a sample input that makes it true and one that keeps it false. Review the table with the engineer who will build the model to confirm the conditions are expressible in CMMN.

  4. Assign human tasks to candidate groups from the identity layer

    For each human task, decide the candidate group or user role that can claim it, and confirm the group names exist in your identity provider or the identity service you have implemented for Flowable. Do not hard-code individual users into the model, because staff changes would require a redeploy. The check is a mapping from every human task to a group name, verified against a test identity set. Run a query as a test user from each group and confirm that the expected tasks appear and the others do not. Ask your identity team to confirm how group claims reach the engine in your environment.

  5. Link BPMN processes and DMN decisions through the case

    Identify the places where the case needs a fixed sub-process or a rules-based decision. Connect a BPMN process as a process task inside the case, and call a DMN decision table from a task or sentry where a rule determines the outcome. Keep each decision table input and output named and documented, since the case depends on those names. The check is a deployed set of case, process and decision definitions that resolve against each other: starting the case should reach the linked process and decision without deployment errors. Confirm the expected decision output for at least one input per rule.

  6. Deploy the case model to a test engine

    Deploy the CMMN, BPMN and DMN definitions to a test environment that uses the same database type and engine version as production. If you embed the engine, use the Spring Boot starters or the Java API against a test datasource. If you run the REST application, deploy through its API. Confirm that the database schema is created and the definitions appear in the repository. The check is a successful deployment with each definition listed at the expected version, plus a clean startup log with no unresolved references. Record the engine version so that later upgrades can be compared against this baseline.

  7. Run scenario tests that drive the case through milestones

    Write scenario tests that create a case instance, supply input data, complete human tasks as the test users, and assert the plan item states at each step. Cover the happy path, each optional branch, a case where a required item is not completed, and a case where two sentries fire together. Assert that milestones are reached only when their entry conditions hold. The check is a passing test suite in which each scenario ends with the case in its expected state, such as a milestone marked completed while a dependent stage remains active. Keep these tests in version control so they run again on every model change.

How a CMMN case calls BPMN processes and DMN decisions

The diagram starts with a case instance that opens its first stage, where sentries watch case data and events to decide which plan items become available. A human task is assigned to a candidate group, while a DMN decision table evaluates a rule that a sentry or task depends on. When a fixed sequence of steps is needed, the case hands off to a BPMN process, and a milestone completes the stage once its required items finish. Check which conditions each sentry listens to, who sits in each candidate group, and whether the milestone can be reached if a called process ends in error.

Flow of a CMMN case through sentries, human tasks, a DMN decision, a BPMN call and a milestone.

How deployment model changes a CMMN case setup

When the CMMN engine runs inside a Spring Boot application, your application owns the case lifecycle. Case definitions are packaged with the application and can be deployed automatically at startup through the official starters, so each release carries the case models it was tested with. Sentry evaluation happens inside the same JVM that handles your application requests, which keeps the case logic close to the domain code that raises events.

  • Deployment: Case models ship in the application artifact, so case changes follow your normal release pipeline.
  • Sentry timing: Sentries react to events the application fires, so verify that every business event your sentries depend on is raised from the same codebase.
  • Human task access: Task lists are usually exposed through your own controllers or the REST starter, so you decide the authorization rules.
  • Monitoring: The actuator endpoint at /actuator/flowable exposes running process data for your monitoring stack.
  • Scaling: Each application instance runs its own engine, so timer and job behavior depends on the shared database setup.

Check which Spring Boot starter and Flowable version your application targets, and confirm the auto-deployment and actuator details in the Flowable Spring Boot documentation for that version.

What drives the effort of a CMMN case project

This table compares the main drivers of effort in a Flowable CMMN case project, what each one does to the work, and how to keep it manageable. Read it before scoping, because the number of case types, sentries and human task roles usually matters more than the engine itself. The main takeaway is that case modeling effort grows with rule complexity and identity mapping, so fixing those early keeps the project predictable.

DriverEffect on effortHow to keep it down
Number of case typesEach case type needs its own model, tests, deployment and ownership, so effort rises with every additional type.Start with the cases that have the clearest business owner and reuse stages and task definitions across types where the meaning matches.
Stages and sentries per caseSentries express entry and exit conditions, and interacting sentries are harder to reason about and test than a linear sequence.Keep sentries on explicit, documented conditions and review the case model with the business owner before building tests.
Human task rolesEach role needs candidate groups, forms or task inputs, and access rules, which multiply the test scenarios.Define a short, agreed list of roles early and map each to a group from the identity source.
BPMN processes and DMN decisionsCalls between case, process and decision models add interface contracts, variable mapping and error paths to test.Agree on variable names and types in writing, and keep each decision table in its own DMN model with clear inputs.
Identity mappingMapping groups from an identity provider to candidate users and tasks is often the slowest part, especially with multiple sources.Confirm the group source, naming and ownership before development, and decide how the IDM engine or a custom identity service will resolve them.
Data volume in the caseLarge case variables, attachments and long-running cases increase storage, query cost and the work to test retention and performance.Keep case variables small, store documents outside the case, and agree on retention rules before the data model is built.
EnvironmentsEach environment needs its own database, deployment configuration, identity settings and test data, which adds setup and release effort.Automate deployment of case models and keep environment differences limited to configuration.
Compliance evidence such as test recordsAssessors and internal reviewers may ask for traceable test cases, approvals and audit history for each case type, which adds documentation work.Link test cases to case model versions and agree the evidence format with the compliance team at the start of the project.

What to monitor, back up, upgrade and document after go-live

The operations team's first job after go-live is watching what the CMMN engine is holding. Running case instances and open human tasks are the main things to see, and the Flowable Spring Boot starters expose an actuator endpoint at /actuator/flowable for monitoring running processes. Confirm with your platform team which of those metrics your monitoring stack can scrape and alert on, and whether the endpoint exposes case-specific counts or only process-level ones. Watch the async executor as well. Timers drive milestones and sentry-related waits in many case models, and jobs that stop moving usually show up first as cases that never advance. Because the async executor coordinates nodes through lock owners and lock expiration times in the database, a node that stops picking up work should be visible in your logs and job metrics before a case is reported as stuck.

The database is the system of record for case instances, task state and history, so it carries the backup and recovery obligation. Confirm the backup frequency, retention and restore test cadence with your database owner against your own recovery objectives, since DeployOpen does not set those for you. Plan case model changes with the same care. A new case version does not automatically rewrite running instances, so decide in advance how in-flight cases will finish, which versions must remain deployed, and how a stage removed from a model will be handled for cases already inside it. Test those decisions against a copy of production data before deploying.

Keep Flowable and its Spring dependencies current on a planned schedule. Version 8.0.0 requires Spring Boot 4 and has no backward compatibility for Spring Boot 3, so a Spring Boot 3 application cannot take the upgrade without its own migration. Read the Flowable 8.0.0 release notes before scheduling, and rerun your case regression suite after each engine or dependency change. Finally, maintain a model register. For each case, record the version in production, the sentries and their entry and exit criteria, the human task owners, the decision tables it calls, and the change history. Auditors and incident responders will ask for exactly this, and it is far easier to keep current than to rebuild after a question arrives.

How to control access and protect a CMMN case deployment

Case management puts people in charge of what happens next, so access to case instances, human tasks and the expressions that drive them needs deliberate control. The cards below cover the Flowable-specific controls to decide, configure and test before a case model reaches production.

Limit who can start, complete and reassign tasks

Human tasks in a CMMN case are claimed, completed and handed over by people, so the case model alone does not decide who may act. Define which roles may start a case, which may complete each human task and which may reassign work, then test each permission with a user from every role. Check that reassignment cannot be used to route a task to someone outside the intended group. Write the rule set down as a table the business owner can review, since it becomes the basis for audit questions later.

Map identity groups to candidate groups

Human tasks usually declare candidate groups or users, and those names must match what your identity provider actually sends. A mismatch can leave a task visible to no one or to too many people. Agree the group naming scheme with the identity team, decide which group is the source of truth for each case role, and confirm how group membership changes on the day someone moves teams. The identity topic covers the engine side of this mapping in depth.

Restrict expressions and scripts in sentries

Sentries and plan item conditions are evaluated as expressions inside the case model, and anyone who can edit a model can change what those expressions do. Keep expressions to simple checks on case variables, and treat any script or custom function as code that needs review and a change record. Ask who can deploy new case definitions and whether that path requires a second approver. Confirm the exact expression language and scripting options in the version you run before writing a policy around them.

Protect the REST API exposing case instances

When the REST application or REST starter exposes case instances, every query and task action becomes a network call that needs authentication and authorization. Place the API behind your gateway or Spring Security configuration, restrict which operations each client may call, and avoid exposing administrative endpoints to end users. Test that a user cannot read another team's case by changing an identifier in the request. The security hardening topic covers API protection in detail.

Keep database credentials out of model files

Case models are XML files that move through source control, reviews and deployments, so they must never hold connection strings, passwords or tokens. Keep datasource settings in externalized configuration or a secrets manager, and check that deployed artifacts contain only the process logic. Review the configuration documentation for your database type so the datasource is set outside the model. Scan model files in your pipeline for credential-like strings before they are merged.

Preserve audit history for case decisions

Case work depends on who decided to skip a stage, which sentry fired and when a milestone was reached, and these answers come from the engine history. Decide how long history is kept, where it is stored and who may read it, and confirm that history rows survive database backups and upgrades. Ask your auditors which case events they need to reconstruct a decision, then verify those events appear in history during a test run. Retention and access to history should match your records policy.

How to test that a case moves correctly and fails safely

Testing a CMMN case means proving that the model behaves correctly for the situations it must handle and holds or escalates safely for the ones it must not. Test the case model and its contracts: the case definition, the entry and exit criteria on each plan item, the sentries, the milestones, and the variables and decisions the case reads and writes. Each scenario test starts a case instance from the deployed definition, feeds it the events and data a real trigger would supply, and asserts the state of every plan item and milestone after each step. Keep the scenarios in version control next to the .cmmn files, so a model change that alters a transition fails a test before it reaches an environment. Your team should confirm how its Flowable version exposes case instance and plan item state through the Java API before writing assertions against it, since assertions tied to internal table names will break on upgrade.

Positive scenarios are only half the suite. Negative tests check that sentries do not fire when they should not: a sentry guarding a stage must stay closed when its condition is only partly met, when the event arrives out of order, or when the data is missing or malformed. Add tests in which a user without the right role tries to complete a human task, and assert that the task stays open and the audit trail records the rejected attempt. Then test failure paths. Where a case calls a DMN decision or a BPMN process and that call fails, the test should confirm whether the case holds in its current stage, retries as designed, or routes to an escalation task owned by a named role. Your risk owners should review these expected outcomes, because a passing test that encodes the wrong failure behavior is worse than no test. Replay representative historical cases before each release, using anonymized or synthetic copies of past inputs, and compare the resulting states with what the business accepted before. Store the test reports, the scenario definitions and the replay comparisons with the release record, since auditors and risk reviewers will ask for that evidence.

Questions buyers ask before hiring help for Flowable CMMN cases

How much does a Flowable CMMN case project cost?

No fixed figure applies to every case project, because cost follows the scope agreed in writing. The main drivers are the number of case types, how many stages, sentries and human tasks each case contains, how many BPMN processes and DMN decision tables it calls, and how many systems it must reach for case data. Integrations with identity providers, document stores and line-of-business systems usually add more effort than the CMMN model itself. Ask any partner to split the quote into discovery, modeling, integration, testing, deployment and handover, and to state which items are one-time and which recur, such as hosting, upgrades and support. Ask whether the price assumes a specific number of case types and integrations, and what triggers a change request.

How long does a CMMN case implementation take?

The timeline depends on how well the case is understood before build starts. Work usually runs longer when process owners disagree about stages, milestones or who may close a case, when case data must be reconciled across systems, or when the test environment is not ready. Each case type adds modeling, human task design, sentry logic, testing and a review cycle with the business. Confirm with any partner which parts of the schedule depend on your team's availability, such as subject matter experts and access approvals. A fixed-scope project should show these dependencies in the written plan.

What must our team provide before a CMMN project starts?

Your team needs to supply four things. First, process owners who can describe how a case moves from intake to closure, including the events that open stages and the conditions that close them. Second, case data definitions, including the fields, document types and source systems that sentries and decisions read. Third, identity groups that map to candidate users and task assignments, which is usually the most time-consuming item in large organizations. Fourth, a test environment with a database that matches production in engine type and version, plus test accounts. Missing any of these tends to push modeling decisions into the build phase.

Can our in-house team build CMMN cases without a partner?

Yes, if your team has Java and Spring experience and time to learn the CMMN notation. Flowable's open source engines are licensed under Apache 2.0, and the getting started guide covers embedding the engine in a Java application, while the Spring Boot documentation describes starters for the CMMN engine. The harder work is usually not the engine but the surrounding design: deciding which work belongs in a case rather than a BPMN process, building task interfaces, securing the REST API and operating the platform. Assess whether your team can own those areas over the life of the system, not only the first release.

How do CMMN cases relate to BPMN processes and DMN decisions?

CMMN models unpredictable, knowledge-driven work where the order of activities is decided at runtime, while BPMN fits work with a defined sequence. Most real systems use all three. A case can contain stages that start BPMN subprocesses for routine steps, and it can call DMN decision tables for rules such as eligibility or routing. The boundaries need to be set during design: decide which engine owns each piece of state, how data passes between them, and how errors and timeouts are handled. Flowable's engines share the same platform, so the integration points are a design choice rather than a separate product decision.

What happens to running cases when we change the model?

Running case instances are tied to the case definition version they started with, so a changed model does not automatically change work already in progress. Your team must decide whether open cases keep the old version until they close or whether they are migrated, and that decision needs a test on a copy of the database before release. Changes to sentries, stage order or human task forms can leave active instances in states the new model does not expect. Confirm with any partner how they test in-flight instances, how they roll back a deployment, and how the approach changes when the Flowable version also changes, such as the move from 7.x to 8.0.0, which was released on February 27, 2026.

How DeployOpen scopes, builds and hands over Flowable case management

DeployOpen plans and implements Flowable CMMN case management inside your own infrastructure, on self-hosted open-source engines. Work starts from a written scope that sets out which case models, human tasks and BPMN or DMN links are included, and it ends with documented models and a handover your team can run.

How we scope

  • Identify which work is case-driven and which is a fixed process, using the case models you already run or the work you intend to model
  • Agree in writing which CMMN cases, stages, sentries and milestones are in scope, and which BPMN or DMN models they call
  • Confirm the hosting shape (embedded Spring Boot or the REST application) and the database your Flowable engines will use
  • List the identity, task UI and service integrations the cases depend on, so their effort appears in the quote

How we build

  • Model each case with stages, entry and exit sentries, human tasks and milestones, and review the models with the people who run the work
  • Implement custom Java delegates and service tasks for the integrations the cases need, with tests that run against the CMMN engine
  • Test case behavior with unit and integration tests covering sentry conditions, task completion and milestone timing
  • Check the case deployment with the Flowable engines on the target database before anything reaches production

How we hand over

  • Deliver the case and process models, service code, configuration and deployment steps in your repository under your control
  • Document how each case is started, how sentries are evaluated, and which decisions and processes each case calls
  • Walk your engineers through the test suite and the operational checks they will run after go-live
  • Record open items and known limits in the handover so your team can plan follow-on work

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, with the scope and response terms agreed in writing
  • Review case models and tests again when Flowable releases a new version, so changes to the engines are checked before upgrade
  • Confirm with DeployOpen which support covers your case models after go-live before signing the retainer

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.