# Generate code using Flowable

**URL:** <https://forum.flowable.org/t/generate-code-using-flowable/1155>\
**Category:** Uncategorized\
**Created:** [November 6, 2017, 12:15pm UTC](https://forum.flowable.org/t/generate-code-using-flowable/1155 "2017-11-06T12:15:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlie.michael](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@charlie.michael](https://forum.flowable.org/u/charlie.michael)\
**Post date:** [November 6, 2017, 12:15pm UTC](https://forum.flowable.org/t/generate-code-using-flowable/1155/1 "2017-11-06T12:15:36Z")

</div>

Hi,

I need to generate a code sequence with a predefined structure every time a process starts (Example: 01/MA/2017, 02/MA/2017, …).

How can I do this using Flowable?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)\
**Post date:** [November 6, 2017, 1:39pm UTC](https://forum.flowable.org/t/generate-code-using-flowable/1155/2 "2017-11-06T13:39:35Z")

</div>

Hi,

You can do this using a service or script task and implement this logic in Java or Javascript, whatever you prefer.

Best regards,

Tijs
