# Want to update BPMN xml dynamically at runtime

**URL:** <https://forum.flowable.org/t/want-to-update-bpmn-xml-dynamically-at-runtime/2716>\
**Category:** Flowable Engine\
**Created:** [October 11, 2018, 8:26am UTC](https://forum.flowable.org/t/want-to-update-bpmn-xml-dynamically-at-runtime/2716 "2018-10-11T08:26:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkshirsagar](https://avatars.discourse-cdn.com/v4/letter/r/5daacb/32.png) [@rkshirsagar](https://forum.flowable.org/u/rkshirsagar)\
**Post date:** [October 11, 2018, 8:26am UTC](https://forum.flowable.org/t/want-to-update-bpmn-xml-dynamically-at-runtime/2716/1 "2018-10-11T08:26:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [October 18, 2018, 8:23am UTC](https://forum.flowable.org/t/want-to-update-bpmn-xml-dynamically-at-runtime/2716/2 "2018-10-18T08:23:48Z")

</div>

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.
