# Embedding Flowable in a J2EE application

**URL:** <https://forum.flowable.org/t/embedding-flowable-in-a-j2ee-application/3465>\
**Category:** Flowable Engine\
**Created:** [February 20, 2019, 4:22am UTC](https://forum.flowable.org/t/embedding-flowable-in-a-j2ee-application/3465 "2019-02-20T04:22:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ykworkflow](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@Ykworkflow](https://forum.flowable.org/u/Ykworkflow)\
**Post date:** [February 20, 2019, 4:22am UTC](https://forum.flowable.org/t/embedding-flowable-in-a-j2ee-application/3465/1 "2019-02-20T04:22:22Z")

</div>

We have an application that has a database on the back end. It has an extensive data model but lacks a good workflow utility.

I am guessing Flowable comes with its own database. Is it possible to use the application data base instead of the built in database in Flowable?

If not, how do you make it available for queries within our application in a contextual way as a query might encompass both our application search as well as a search in Flowable?

Would be interested in understanding how Flowable has been integrated into an existing application which has its own database.

---

<div class="post-metadata">

**Author:** ![Vzy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/vzy/32/1158_2.png) [@Vzy](https://forum.flowable.org/u/Vzy)\
**Post date:** [February 20, 2019, 11:52am UTC](https://forum.flowable.org/t/embedding-flowable-in-a-j2ee-application/3465/2 "2019-02-20T11:52:03Z")

</div>

Hi,

You can manually create db table to your existing application DB by running the sql scripts --\> [https://github.com/flowable/flowable-engine/tree/master/modules/flowable-engine/src/main/resources/org/flowable/db](https://github.com/flowable/flowable-engine/tree/master/modules/flowable-engine/src/main/resources/org/flowable/db).

as per flowable .docs, provide same application db schema to flowable with application required configurations.

---

<div class="post-metadata">

**Author:** ![Ykworkflow](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@Ykworkflow](https://forum.flowable.org/u/Ykworkflow)\
**Post date:** [February 20, 2019, 7:12pm UTC](https://forum.flowable.org/t/embedding-flowable-in-a-j2ee-application/3465/3 "2019-02-20T19:12:13Z")

</div>

Is there a visual diagram of the data model?

---

<div class="post-metadata">

**Author:** ![hidertanure](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/hidertanure/32/1100_2.png) [@hidertanure](https://forum.flowable.org/u/hidertanure)\
**Post date:** [February 20, 2019, 8:14pm UTC](https://forum.flowable.org/t/embedding-flowable-in-a-j2ee-application/3465/4 "2019-02-20T20:14:06Z")

</div>

Hi,

I suggest you to point Flowable to a clean database and use reverse engineer to get what you want.

=]
