Want to update BPMN xml dynamically at runtime

addClassPathResource method not taking updated BPMN XML. I am creating BPMN XML dynamically. I want to update that XML dynamically but it’s taking old one XML. So can I Override to an addClassPathResource method or any other way for this problem? thanks in advance.

If you’re creating the xml dynamically, I assume you mean you’re creating it programmatically? If so, you can use the .addInputStream(“myprocess.bpmn20.xml”, inputstream) method, where the inputStream is the new xml.