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:
-
processDefinitionId
can be queried withruntimeService.createExecutionQuery().executionId(...).singleResult().getProcessDefinitionId()
whereruntimeService
is an instance oforg.flowable.engine.RuntimeService
- also there is
repositoryService
which 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!