# Fetching and updating Flowable model XML using Spring Boot flowable engine

**URL:** <https://forum.flowable.org/t/fetching-and-updating-flowable-model-xml-using-spring-boot-flowable-engine/10429>\
**Category:** Flowable Engine\
**Created:** [April 18, 2023, 6:24am UTC](https://forum.flowable.org/t/fetching-and-updating-flowable-model-xml-using-spring-boot-flowable-engine/10429 "2023-04-18T06:24:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![psychicDivine](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/psychicdivine/32/2561_2.png) [@psychicDivine](https://forum.flowable.org/u/psychicDivine)\
**Post date:** [April 18, 2023, 6:24am UTC](https://forum.flowable.org/t/fetching-and-updating-flowable-model-xml-using-spring-boot-flowable-engine/10429/1 "2023-04-18T06:24:58Z")

</div>

Hello everyone, I’m currently working on implementing an API with Spring Boot and the Flowable engine.  
I’m facing issues while fetching a model’s XML based on its ID or key and .then updating it to deploy the model(publish it to the app).

I have tried to fetch the model using the RepositoryService,  
for example, Model model = (Model) processEngine.getRepositoryService().getModel(modelId); // this returns null.  
I have also tried using createModelQuery().modelId(modelId) or key, but no luck.

The issue seems to be related to the act\_re\_model repository table in the database, which is empty for me. All my model data is in the act\_de\_model table (deployed).

I have gone through similar posts where they suggest using the modelRepositoryService, which is a part of the Flowable Modeler service and not a public API.

Can someone please help me out with this? I’m stuck and would appreciate any guidance or assistance. Thank you.

@joram @tijs

> [@Load models from Flowable Modeler](https://forum.flowable.org/t/load-models-from-flowable-modeler/960):
>
> How can I load a Model deployed from the Modeler? In ACT\_DE\_MODEL table I see my bpmn20.xml entry displayed but repositoryService.createModelQuery (). modelKey (“xxx”).list() repositoryService.createModelQuery().notDeployed().list() repositoryService.createModelQuery().deployed().list() doesn’t return values because in the log I see that it queries ACT\_RE\_MODEL I have also tried loading model with ddbb id value directly repositoryService.getModelEditorSource (\<ddbb\_id\>) but result is…

---

_[View the full topic](https://forum.flowable.org/t/fetching-and-updating-flowable-model-xml-using-spring-boot-flowable-engine/10429)._
