Is there a way to fetch deployed xml schema by executionId ?
Ultimately I’m looking for a way to map executionId with xml of bpmn (to render it in a custom admin tool).
At the moment I found that:
-
processDefinitionIdcan be queried withruntimeService.createExecutionQuery().executionId(...).singleResult().getProcessDefinitionId()whereruntimeServiceis an instance oforg.flowable.engine.RuntimeService - also there is
repositoryServicewhich is capable of.getBmpnModel()byprocessDefinitionId, but that would be a DOM of the schema, right?
Could you guide me where to look for the original XML of deployed schema. Or may be a facility capable of serializing BmpnModel back to XML.
Cheers!