# Generating flowable process

**URL:** <https://forum.flowable.org/t/generating-flowable-process/8698>\
**Category:** Uncategorized\
**Created:** [December 3, 2021, 4:11am UTC](https://forum.flowable.org/t/generating-flowable-process/8698 "2021-12-03T04:11:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![srallapally](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/srallapally/32/2646_2.png) [@srallapally](https://forum.flowable.org/u/srallapally)\
**Post date:** [December 3, 2021, 4:11am UTC](https://forum.flowable.org/t/generating-flowable-process/8698/1 "2021-12-03T04:11:34Z")

</div>

Is it possible to generate a flowable process using Flowable APIs? My use case involves asking the business user questions around how many approval steps, assignee etc and then I need to generate the process with the Human task. The motivation being that my users are not BPMN savvy.

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [December 10, 2021, 9:12am UTC](https://forum.flowable.org/t/generating-flowable-process/8698/2 "2021-12-10T09:12:32Z")

</div>

Hi Srallapally.

Yes, there are plenty of possibilities:

- `DynamicBpmnService`
- generate BPMN on the fly and deploy it afterwards
- Multiinstance - I think that’s the approach, which you should take.

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![srallapally](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/srallapally/32/2646_2.png) [@srallapally](https://forum.flowable.org/u/srallapally)\
**Post date:** [January 27, 2022, 9:06am UTC](https://forum.flowable.org/t/generating-flowable-process/8698/3 "2022-01-27T09:06:54Z")

</div>

Martin

> <https://github.com/flowable/flowable-engine/blob/main/modules/flowable-engine/src/main/java/org/flowable/engine/DynamicBpmnService.java>

doesn’t have any method to create a Process Definition. What am I missing?

---

<div class="post-metadata">

**Author:** ![srallapally](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/srallapally/32/2646_2.png) [@srallapally](https://forum.flowable.org/u/srallapally)\
**Post date:** [January 27, 2022, 9:23am UTC](https://forum.flowable.org/t/generating-flowable-process/8698/4 "2022-01-27T09:23:14Z")

</div>

Found this

> <https://github.com/frederikheremans/activiti-dynamic-process/blob/master/src/test/java/be/stacktrace/activiti/dynamicprocess/DynamicActivitiProcessTest.java>

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [January 28, 2022, 6:55am UTC](https://forum.flowable.org/t/generating-flowable-process/8698/5 "2022-01-28T06:55:23Z")

</div>

> <https://github.com/flowable/flowable-engine/blob/ab846325172fcbd5cc87e90e5a68bd8bcb3aa6dd/modules/flowable-engine/src/main/java/org/flowable/engine/DynamicBpmnService.java#L31>

adds ne user task to the currently running process instance.  
`DynamicActivitiProcessTest` is the second option:

> [@martin.grofcik](#):
>
> generate BPMN on the fly and deploy it afterwards

> [@martin.grofcik](#):
>
> Multiinstance - I think that’s the approach, which you should take.

Is my favorite.

Regards  
Martin
