I’m trying to prevent certain variables from being stored in the history tables as the values are quite big and there is no requirements to store them.
However I’m unable to activate my custom history level class. I’m using Spring Boot and extending AbstractProcessEnginePlugin and registering my class that implements HistoryLevel applying logic for isHistoryEventProduced. I’ve tried debugging the call but it never reaches my method even though I can see the level being registered by the engine. Is there anything else I need to do? I’ve also tried registering a ExecutionListener and tried removing the variable from the execution context but the history still gets invoked.
I think there are some instructions on how to use this in the documentation as well as the code examples referenced above. In the documentation, they reference two examples of “custom” history implementations, one of which is only recording history for specific processes and the other I can’t remember. You can find some information about it here: https://docs.camunda.org/manual/latest/user-guide/process-engine/history/
We built a completely separate custom history service because the one in Camunda is very “expensive” in terms of database overhead.