Can anyone recommend the best approach to delete process instance variables and associated history after the instance completes? My use case requires that the variable data exists only when the process instance is running. Once it completes I need to delete the variable data and all history. This doesn’t apply to all process definitions only a select few, so enabling this via configuration would be the best option.
Any help on this would be appreciated.