Top five things you need to know about Camunda Process History

The Camunda Process Engine maintains the state of running process instances inside a database. This includes saving the state of a process instance to the database as it reaches a wait state and reading the state as process execution continues. This database is called the runtime database. In addition to maintaining the runtime state, the process engine creates an audit log providing audit information about executed process instances; this is called this event stream or the history event stream.

Camunda keeps track of all the data that flows through it, as well as the metadata. So if you’ve got a process that is seeking approval for paying an invoice, for example, Camunda tracks:

  1. All the details of the invoice itself
  2. Who worked on it last
  3. How long it sat there before they started working on it
  4. How long it took them to finish the task
  5. How long the next person took, etc.

In this Podcast episode, Stuart and Max explore the 5 things that you need to know about Camunda Process History when using the open-source Camunda Platform, an Enterprise Platform for Workflow and Decision Automation.

This is really useful information for process improvement and optimization, but….

  1. There’s a limit of 4000 characters for string objects. So, if your data happens to be really long, that’s going to break things. Now, you can get around that by using SPIN (a lightweight wrapper library that provides an easy-to-use API when working with text-based data formats such as XML and JSON), but that it has its own pros and cons.
  2. All the information loaded into Camunda’s head is stored: so, if you’ve got sensitive information as a part of your process payload, which could be a security concern.
  3. Those history tables load up fast! If you’re not actively purging them, they will, 100%, crash your server.

How do you work around the negative on this?

You need to discriminate between your process data and your application data.

  1. Process data is the information that Camunda needs in order to do its job.
  2. Which way to go in a gateway
  3. The input to a DMN table
  4. Who’s doing the task
  5. How long they have to do it
  6. The business key
  7. Restful APIs that need to be called
  8. Application data is the actual payload that the business cares about. The details of the Invoice, who approved it, the amount, etc. This is important business data, but it’s not strictly necessary in order for the Camunda engine to drive a process definition. This is the data you want to store in your internal application database.

Then apply your internal company policies and best practices for application data, while still letting Camunda do what it does best. The business key will act as a tether, connecting your business instance data to the Camunda instance that’s shepherding it.

Keep Process Data and Application Data separated which will minimize the size of Process Data, but, still need to clean the history tables.

Yes, you still have to purge the history tables, or they break your server. In order to do that, you need to enable the History Cleanup Features. You can trigger it manually, but most people set it to execute automatically. In order to do that, you have to:

  1. Set the Time-To-Live, TTL, for your process definitions, which can be done right in the model. Most people set this to six months.
  2. Chose a History level. Your options are:
    • NONE
    • Activity
    • Audit
    • FULL
    • AUTO
      This can be done via the bpm-platform.xml and processes.xml file.
  3. Configure a clean-up schedule that aligns with your throughput and company policies.

What are the top five things you need to know about Camunda Process History?

This podcast discusses 5 things you need to be aware of as “Best Practices” when dealing with Camunda Process History. Stuart and Max discuss the top ways to manage Process related data including the differences between Camunda Process Data, Task Data, and Process History, the limitations of Camunda Process related data storage, how to best work with Camunda Process History, Process Application data, and how to keep all Process related data cleaned-up.

https://1c6dba4e-4803-4443-a0a9-c9b19dea5066.usrfiles.com/html/db9376e69cfa487ea0fa0b912ae51a4f_v1.html

Testimonial

What Our Clients Say

We brought on Max Young and his team at CapBPM to help us out to put our best foot forward as it related to our Camunda deployment and our Camunda journey. And when we brought on CapBPM, we actually didn't have Terry Camerlengo even on board yet as a Technology Director. So I can't emphasize enough how important it was for us to have a really good partner with us. I can confidently say if we made a wrong choice on the partner, I don't think we'd be standing here and sharing what we're sharing with you today.

George Kutnerian Co-Founder, President & CEO of Wellpointe Inc.
(Excerpt from his session at CamundaCon 2025 NYC)

Capital BPM migrated 21 workflows from Camunda 7 to Camunda 8 using their Exodus tool. Recently, coming across a lot of customers that are also migrating from monolithic and legacy workflow tools to Camunda.

Sathya Sethuraman, Field CTO, Camunda

A great way to start your week, when your previous boss sees your roadmap design confirmed by a Harvard Business Review article. Thanking our partners on this journey - Will Strickland and the CapBPM team.

Amir Billones IT Manager, Vermont

We'd already started the conversation with CapBPM about upgrading anyway... (now) we have a partner who really understands that migration from C7 to C8... Knowing that I had somebody to rely on to help us through that migration was huge.

Jeremy Warren VP of Programming & Project Management, Greylock Federal Credit Union

Camunda’s orchestration gives us that solid foundation—providing the stability we need while still enabling us to push forward with GenAI-driven innovations that improve care and operational efficiency. CapBPM has been an invaluable partner in this journey. Their expertise and guidance help us design and position solutions that respect the rigor of healthcare’s regulatory landscape while unlocking the promise of next-generation orchestration. CapBPM has given us the confidence to explore agentic orchestration with Camunda in a way that is innovative, responsible, and value-driven. Kudos to both of these excellent partners.

Terry Camerlengo Director of Technology, Wellpointe

Capital BPM has consistently proven to be a top-tier, dependable, and results-driven partner in supporting KPI's ongoing journey with Camunda and BPM. Their team brings both strategic insight and hands-on tactical expertise, enabling us to navigate complex, modern automation challenges with confidence.

Adam Stutz Senior Software Engineering & Manager, KPI Solutions