# Customizing process definition

**URL:** <https://forum.flowable.org/t/customizing-process-definition/6227>\
**Category:** Flowable Engine\
**Created:** [June 16, 2020, 4:26am UTC](https://forum.flowable.org/t/customizing-process-definition/6227 "2020-06-16T04:26:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [June 16, 2020, 4:26am UTC](https://forum.flowable.org/t/customizing-process-definition/6227/1 "2020-06-16T04:26:25Z")

</div>

Due to the business of my company, there is 2 types of process definition, it is not supported by flowable engine, so I need to have a new column for persisting the type of my process in ACT\_RE\_PROCDEF. can i do such a customization? also, after having this column I should override some methods as well to save and retrieve type.

I will be grateful if you help me with this matter.

---

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [June 20, 2020, 6:49am UTC](https://forum.flowable.org/t/customizing-process-definition/6227/2 "2020-06-20T06:49:26Z")

</div>

could you please answer my question?

---

<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:** [June 28, 2020, 9:36am UTC](https://forum.flowable.org/t/customizing-process-definition/6227/3 "2020-06-28T09:36:51Z")

</div>

I’m not sure I understand your question (which is most likely why it hasn’t been answered yet): what does it mean to have two ‘types’? What makes these types different? And what’s the impact on execution?

A process definition has a ‘category’ attribute for this purpose. Why isn’t it sufficient for your use case?

---

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [June 28, 2020, 10:00am UTC](https://forum.flowable.org/t/customizing-process-definition/6227/4 "2020-06-28T10:00:27Z")

</div>

You understood me so well Joram, I had found the category before but I was not sure about using it. I thought may be flowable engine use the field itself and if I filled it with my value, it would have side effects. But when you suggest it I am sure I can fill it with my value without being worried.

Thank you.

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [June 28, 2020, 10:06am UTC](https://forum.flowable.org/t/customizing-process-definition/6227/5 "2020-06-28T10:06:48Z")

</div>

To add some more info to what @joram said. The `category` of the `ProcessDefinition` is set based on the `targetNamespace` in the BPMN XML. Which means that you can automatically set it when the process is deployed, no need to use the Java API for it.

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![prs.parisa](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@prs.parisa](https://forum.flowable.org/u/prs.parisa)\
**Post date:** [June 29, 2020, 3:14am UTC](https://forum.flowable.org/t/customizing-process-definition/6227/6 "2020-06-29T03:14:11Z")

</div>

thank you filiphr.  
Just to make sure do you think if I set category myself, will it have side effect?

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [June 29, 2020, 6:39am UTC](https://forum.flowable.org/t/customizing-process-definition/6227/7 "2020-06-29T06:39:46Z")

</div>

Yes you can. I only mentioned the `targetNamespace` so you know that it can be set in the XML as well.
