1 of 1 people found this helpful
you can freely extend logging capabilities by adding your own process event listener that will be registered on ksession and task lifecycle listener for task operations. These listeners then can log as many information as needed to custom tables (remember to define entities in persistence.xml so they will be seen for the entity manager.
When it comes to clean up of history log, currently it is up to you to clean it up and to decide when to do so. jBPM does not provide API for such operations, mainly due to extensibility available here - we cannot ensure all is cleaned up if it was extended.