DEV Community

Alex Natskovich
Alex Natskovich

Posted on Originally published at mev.com

Healthcare Case Management: Evaluating Flowable, Camunda, and Django Viewflow

Healthcare patient support programs need to manage cases that can remain open across multiple treatment and administrative cycles. Enrollment, benefits verification, prior authorization, follow-up, refill monitoring, and outcome tracking may involve different staff members, external systems, and repeated activities.

A case might pause while an insurer reviews an authorization request, resume when a response arrives, and move to another case manager before the next refill cycle. The application needs to preserve its state throughout that process.

At MEV, we evaluated case management platforms for a healthcare patient support program that would run on Microsoft Azure under HIPAA-related security requirements.

The evaluation covered commercial workflow engines, low-code platforms, healthcare applications, and developer frameworks. Our shortlist eventually came down to Flowable, Camunda, and Django Viewflow.

The main architectural question was where case state, workflow execution, business rules, and task assignments should live.

Why long-running cases need a workflow runtime

A typical patient support workflow includes several activities:

  1. Enroll a patient in a support program.
  2. Verify insurance benefits.
  3. Request and track prior authorization.
  4. Coordinate follow-up activities.
  5. Monitor refills and repeat relevant steps.
  6. Close the case with an outcome.

The sequence looks relatively simple until it has to support actual operations.

An authorization may be delayed. The patient may need another round of benefits verification. A case manager may leave the organization, requiring open tasks to be reassigned. Some activities depend on external events, while others follow defined schedules.

Different patient support programs may also require different validation rules, forms, and task sequences.

For our project, the workflow platform needed to handle these behaviors while maintaining an accessible record of what had happened to each case.

That meant supporting:

  • Persistent case state across pauses, reassignment, and repeated activities
  • Different workflows and data requirements for individual programs
  • Business rules and validations executed as part of the workflow
  • Task lists that operational teams could filter and prioritize
  • Separation of cases, users, and permissions by program, care team, and location
  • Integration with external healthcare systems
  • Workflow changes without repeatedly modifying the application's core logic

We also had to account for scenarios where the same patient might exist in multiple programs, with separation requirements applying independently to each program.

A general-purpose application can implement these behaviors in custom code. The question is how much of the workflow infrastructure the development team should own.

Three approaches to implementing healthcare case management

Before comparing individual platforms, we considered three implementation approaches.

Approach Where workflow state lives Main engineering trade-off
Configure a workflow platform Workflow engine runtime Less infrastructure to build, but constrained by the engine's supported models
Assemble low-code tools Forms, storage, automation jobs, and integrations Rapid initial development, with more effort required to coordinate distributed workflow state
Build a custom application Application code and database Maximum control, with responsibility for workflow execution and operations falling on the development team

Each can be appropriate under different requirements.

Configuring a workflow engine

A workflow engine already provides mechanisms for process execution, task assignment, state transitions, and workflow history.

The team configures the workflow and extends it where necessary.

This is attractive when multiple patient support programs need their own business rules and when activities can remain open for extended periods.

The limitation is the engine's workflow model.

If the platform cannot express a required case behavior, developers may need custom code or external services to compensate.

Assembling low-code components

Low-code platforms can provide forms, dashboards, automation, and database connectivity with relatively little initial development effort.

However, a complex case workflow may end up distributed across application screens, automation triggers, database fields, and external services.

Consider a patient waiting for an authorization decision.

One automation might send a request, another might check for responses, and a third might update the case status. If these operations are managed independently, the application needs additional mechanisms to coordinate them and maintain a dependable execution history.

This approach places more responsibility for state consistency and change management on the team.

Building the application in code

A custom application provides full control over the data model, interfaces, integrations, and workflow behavior.

The development team also becomes responsible for the workflow infrastructure.

That includes task assignment, timers, retries, authorization boundaries, workflow versioning, and handling cases that are already in progress when business rules change.

For a system expected to support multiple programs over time, those responsibilities become a substantial part of the application.

We wanted to avoid rebuilding that infrastructure unless the existing platforms failed the requirements.

Azure deployment and HIPAA requirements narrowed the options

The project had a mandatory deployment requirement: the platform needed to run in the client's Azure environment.

That excluded products available only as vendor-managed SaaS applications.

The application would process protected health information (PHI), so the architecture also needed to support applicable HIPAA requirements.

The relevant areas included access control, audit logging, program isolation, encryption, and operational security.

A Business Associate Agreement (BAA) was another consideration.

If a vendor creates, receives, maintains, or transmits PHI on behalf of a covered entity or business associate, appropriate contractual arrangements are generally required.

Self-hosting the workflow runtime in Azure gave us more control over where PHI was processed and reduced dependence on an additional SaaS provider handling that data.

It did not automatically establish HIPAA compliance. The deployment architecture, access controls, vendor relationships, and operational safeguards still needed to be evaluated.

We also wanted the platform to support multiple patient programs on shared infrastructure while maintaining separation of cases and user access.

These requirements eliminated a substantial number of products before we reached detailed feature comparisons.

For example, we evaluated Retool and Appsmith as possible low-code approaches, but their workflow models were less suitable for managing long-running patient cases.

We also considered healthcare-oriented systems such as OpenMRS and Bahmni. Their existing application and workflow models did not align closely enough with the intended patient support operations.

Other products introduced too much custom workflow development or operational overhead for the project.

The strongest remaining options offered either a dedicated workflow runtime or a framework that could keep workflow logic within the application.

Flowable: Process, case, and decision management in one runtime

Flowable became our preferred candidate because it supports three modeling standards relevant to the project:

  • BPMN (Business Process Model and Notation): Models structured business processes, including tasks, transitions, and event-driven execution.
  • CMMN (Case Management Model and Notation): Supports case-oriented work where activities can depend on events, conditions, and decisions made during execution.
  • DMN (Decision Model and Notation): Represents business decision logic separately from the process implementation.

The combination was important for a patient support program.

BPMN could represent a defined benefits verification process, including a request, response, and subsequent routing.

CMMN was relevant for broader case behavior, where a patient might need additional activities or repeated follow-up depending on circumstances.

DMN could support program-specific decisions and validation rules without requiring the rules to be embedded directly in application code.

Integrations and program separation

We found several capabilities relevant to the intended architecture.

Flowable provided APIs for interacting with workflows and cases, HTTP tasks for calling external services, and options for integrating with Azure single sign-on.

For program separation, the platform offered tenant-level and workspace-level approaches that needed further evaluation against the client's access requirements.

We wanted the workflow engine to manage the case lifecycle while allowing other services to handle healthcare transactions and domain-specific processing.

This would reduce the amount of custom workflow coordination required in the application.

What we tested

We ran Flowable locally using Docker, explored the cloud trial, and created a basic workflow containing a task.

One finding concerned the open-source edition.

The functionality and tooling available in that edition were too limited for our target use case. In particular, the absence of the required visual Designer functionality meant BPMN and CMMN authoring would depend more heavily on XML.

We therefore evaluated the commercial offering as the more relevant direction.

Several questions still needed to be addressed with the vendor, including enterprise licensing, Azure deployment, upgrades, scaling, customization, and the design of roles and tenants.

Flowable was the closest functional match, but those operational requirements still mattered to the final platform decision.

For teams taking a similar approach, MEV provides Flowable development and implementation services, including workflow design, application integration, and implementation around the platform.

Camunda: A strong alternative for process orchestration

Camunda was the closest alternative in our evaluation.

Its main strength for this project was BPMN-based workflow orchestration, supported by developer tooling and a mature process-engine approach.

For structured workflows involving multiple services, Camunda remained a credible candidate.

The distinction came from its support for case-oriented behavior.

Camunda 7 included CMMN capabilities, but the platform deprecated that model. Camunda 8 moved to BPMN-focused orchestration without native CMMN support.

Camunda 7 Community Edition also reached the end of its regular patch support following its final feature release in October 2025.

For our requirements, the absence of a continuing native CMMN path mattered.

We expected the patient support application to handle cases with activities that could be added, repeated, or activated as circumstances changed.

Those behaviors could be modeled using BPMN, but the team would need to evaluate the additional design and implementation complexity.

Camunda remained a strong option where orchestration across services was the primary requirement.

For this project, Flowable offered a closer match to the combination of structured processes and case-oriented work.

Django Viewflow: Keeping workflow logic inside the application

Django Viewflow offered a different architecture.

It is a Django-based workflow framework that can be extended into a complete application.

Instead of adopting a separate packaged workflow platform, the development team can implement workflows alongside the application's data models, views, and business logic.

This provides substantial flexibility.

Developers can use Django's application structure to manage domain-specific behavior and build interfaces around the workflow.

Viewflow also provides workflow functionality and permission-related capabilities, reducing some of the work involved in starting from an entirely custom implementation.

The trade-off is greater engineering ownership.

The team must build and maintain more of the application and operational layer, including decisions about case management interfaces, program isolation, integration patterns, and ongoing workflow changes.

We kept Django Viewflow on the shortlist because it offered a viable option for a team willing to maintain a more code-centric solution.

For a project prioritizing workflow configuration and operational changes across multiple patient programs, we preferred a dedicated workflow platform.

How the shortlisted platforms compared

Criterion Flowable Camunda Django Viewflow
Main architecture Workflow and case management platform Process orchestration platform Django workflow framework
Workflow model BPMN, CMMN, DMN BPMN and DMN in Camunda 8 Python/Django-based workflows
Case-oriented behavior Native CMMN support Requires BPMN-oriented modeling in Camunda 8 Defined through application design
Application integration Platform APIs and service tasks Process orchestration and service integration Django application code
Program separation Tenant and workspace options Requires deployment and access-model evaluation Implemented through application design
Developer responsibility Configuration, integration, deployment, extensions Process modeling, integration, deployment More application and platform development
Fit for our requirements Preferred Closest alternative Framework-based alternative

This comparison reflects the requirements and platform capabilities considered during our evaluation. Product versions, licensing, deployment options, and vendor support should be checked again before a new implementation.

Integrating healthcare transactions with the workflow engine

A patient support application may need to exchange information with EHR systems, insurers, pharmacies, and other healthcare services.

The workflow engine should coordinate when those transactions happen and retain their results as part of the case history.

The integration layer handles the transaction formats and communication with external systems.

For our target architecture, the relevant standards included:

Workflow activity Relevant healthcare standard
Enrollment and clinical data exchange HL7 and FHIR
Eligibility and benefits verification X12 EDI 270/271
Prior authorization X12 EDI 278
Electronic prescribing and related pharmacy messaging NCPDP SCRIPT

A workflow can invoke an external service through an HTTP or service task.

That service communicates with the appropriate FHIR server, interface engine, or clearinghouse and returns a response that the workflow can use to advance the case.

For example, a benefits verification process might submit an eligibility request through an integration service.

The workflow then needs to account for a successful response, an exception, or a delay requiring follow-up.

The integration service handles the transaction protocol. The workflow runtime tracks the business process and its current state.

This separation allows different programs to use shared integration capabilities while maintaining their own workflow definitions.

It also informs the wider healthcare data management architecture, where data models, integrations, access boundaries, and operational workflows need to work together.

What the proof of concept needed to demonstrate

Documentation and feature comparisons were useful for narrowing the shortlist, but we still needed hands-on validation.

A platform may support task assignment, process execution, and business rules independently while requiring significant customization to combine them into the intended case-management application.

The proof of concept therefore needed to demonstrate a complete patient support workflow using the platform's own runtime.

We focused on several questions.

Can the platform manage a case through its full lifecycle?

The runtime needed to create a case, assign tasks, pause execution, resume work, reassign ownership, and complete the case.

Timers and transitions also needed to remain part of the managed workflow.

We wanted to avoid depending on external scripts or manually maintained database flags for core progression.

Can programs have different rules and data requirements?

One patient support program might require additional validation during enrollment, while another might need different follow-up activities.

We needed to determine whether these variations could be configured without repeatedly modifying the core application.

The PoC also had to test whether the same patient could participate in separate programs while respecting their access boundaries.

Does the platform provide usable work lists?

Operational teams need to see which tasks require their attention.

The runtime had to expose assignments through appropriate role-specific work lists and enforce access restrictions on the tasks themselves.

Task visibility needed to follow the application's program and responsibility model.

What happens when a workflow changes?

Long-running cases introduce a difficult deployment problem.

A case may have been created under an earlier workflow definition and may still be active when a new version is deployed.

The PoC needed to examine how workflow versioning affects those active cases.

A platform that requires developers to rewrite core logic or manually repair cases during routine workflow changes would create additional maintenance work.

Can the system explain what happened to a case?

The workflow history needed to capture the relevant changes to case status, task state, ownership, and execution.

For a patient support operation, administrators need to reconstruct the progress of a case and understand why particular actions occurred.

The extent to which this history is available directly from the runtime affects how much additional auditing and reporting functionality the team must implement.

These tests were more informative than comparing feature lists alone because they exercised the platform under the same conditions the eventual application would encounter.

Why workflow state ownership influenced our decision

The evaluation repeatedly returned to the location and ownership of workflow state.

When a platform owns case execution, it can maintain the relationships between tasks, transitions, timers, and case history.

When those responsibilities are divided across database fields, automation jobs, and custom services, the application must coordinate them.

That coordination becomes more complicated when workflows change, integrations fail, or multiple patient programs share the same infrastructure.

For our healthcare project, we wanted one runtime to manage the case lifecycle while separate application and integration layers handled their respective responsibilities.

That led us toward Flowable.

Its support for BPMN, CMMN, and DMN aligned with our mix of structured processes, long-running cases, and configurable business decisions.

Camunda remained relevant for a more orchestration-oriented architecture. Django Viewflow offered a code-centric alternative with more control and greater developer ownership.

The final platform choice still depended on validating deployment, operations, licensing, security, and active-case behavior in the target environment.

Conclusion

Choosing a healthcare case management platform requires an understanding of how the patient support program operates over time.

Long-running cases introduce requirements for state management, reassignment, repeated activities, program variation, audit history, and integration with external healthcare systems.

Our evaluation started with those requirements and narrowed the implementation approaches before comparing individual products.

Flowable emerged as the preferred option for our Azure-based patient support use case because its runtime could support process execution, case-oriented behavior, and decision logic together.

The most useful final step was validating that model through a working proof of concept.

The platform needed to execute the case lifecycle, maintain its state and history, enforce program boundaries, and support changing workflows without pushing essential coordination into external code.

Those are the behaviors worth testing before committing to a case management architecture that will need to support healthcare operations for years.


This article is based on MEV's evaluation of case management technologies for a healthcare patient support program, including technical requirements, platform comparisons, and proof-of-concept validation.

Original article: How to Choose a Case Management Platform for Healthcare Patient Support

Top comments (0)