Its quite an old thread, but I just stumbled upon the same requirement, and while this is not supported out-of-the-box I hacked a quick plugin to capture that Id. I wanted to share that here for reference.
The code necessary was basically:
- Capture: https://github.com/berndruecker/zeebe-camunda-dmn/blob/master/zeebe-camunda-dmn-embedded-platform/src/main/java/io/berndruecker/demo/zeebe/dmn/platform/CaptureHistoryDmnHistoryEventProducer.java#L9
- Configure the engine to use that capturing: https://github.com/berndruecker/zeebe-camunda-dmn/blob/master/zeebe-camunda-dmn-embedded-platform/src/main/java/io/berndruecker/demo/zeebe/dmn/platform/CamundaEngineConfiguration.java#L13
Hope that helps, Bernd.