The Process SVG add on seems to only work on persisted process instances. According to the Kogito documentation, only unfinished process instances are persisted.
Is there a way to create the SVG of the path taken for completed instances? Preferably without having to persist, as I could have millions of instances.
My use case is to have two rest endpoints - one that just returns the output data object that is the result of the BPMN process, and the other that returns the SVG of the path taken (whether I need to process the BPMN again using the same input or use a previous instance of it, doesn't matter).
I have tried persisting to infinispan and then calling the /svg/processes/{processId}/instances/{processInstanceId} but it never finds the processInstanceId I specify since it completed.
Here are the relevant documentation links: https://docs.kogito.kie.org/latest/html_single/#con-persistence_kogito-developing-process-services - states that only non-completed process instances are persisted.
https://docs.kogito.kie.org/latest/html_single/#con-bpmn-process-svg-addon_kogito-developing-process-services - since it requires a processInstanceId, that indicates to me that it needs to be persisted, and thus, cannot be a completed instance.