# How to create Custom Task

**URL:** <https://forum.flowable.org/t/how-to-create-custom-task/3900>\
**Category:** Uncategorized\
**Created:** [May 15, 2019, 7:35pm UTC](https://forum.flowable.org/t/how-to-create-custom-task/3900 "2019-05-15T19:35:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amstitan99](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/amstitan99/32/1228_2.png) [@amstitan99](https://forum.flowable.org/u/amstitan99)\
**Post date:** [May 15, 2019, 7:35pm UTC](https://forum.flowable.org/t/how-to-create-custom-task/3900/1 "2019-05-15T19:35:12Z")

</div>

Hi,

I am new in flowable, just wanted to create custom task please guide me from where i can start and what are the step to create simple custom task,

the task just accept input parameter and return output parameter, with just simple business logic,

please guide me how many files i have to modified and in which package too.

---

<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:** [May 16, 2019, 7:04am UTC](https://forum.flowable.org/t/how-to-create-custom-task/3900/2 "2019-05-16T07:04:10Z")

</div>

Hi Amstitan.

In the case when logic is really simple you can just use a scriptTask  
[https://flowable.org/docs/userguide/index.html#bpmnScriptTask](https://flowable.org/docs/userguide/index.html#bpmnScriptTask)

working examples:

> <https://github.com/flowable/flowable-engine/blob/aadd8b168e9aa17c0ac7e946486c746c21cda005/modules/flowable-engine/src/test/java/org/flowable/examples/bpmn/scripttask/ScriptTaskTest.java>

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![amstitan99](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/amstitan99/32/1228_2.png) [@amstitan99](https://forum.flowable.org/u/amstitan99)\
**Post date:** [May 19, 2019, 7:19am UTC](https://forum.flowable.org/t/how-to-create-custom-task/3900/3 "2019-05-19T07:19:04Z")

</div>

Hi,

Thanks for your reply, i have just modified stencilset\_bpmn.json file with adding Node same as Service Task, it gives me Json Converter Error, it can be resolve but i need to understand what is json converter role. what thing i need to modify.

I just need a custom stencil similar behavior to Service task but need to apply basic business logic,  
I have searched alot but did not find any proper beginner guide or tutorial for this one.

---

<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:** [May 22, 2019, 5:36am UTC](https://forum.flowable.org/t/how-to-create-custom-task/3900/4 "2019-05-22T05:36:33Z")

</div>

Hi Amstitan,

As a beginner you do not need to extend stencilsets. If you extend stencil set, you can provide your own tasks for modelers.  
Just use  
[https://flowable.org/docs/userguide/index.html#bpmnScriptTask](https://flowable.org/docs/userguide/index.html#bpmnScriptTask)  
or  
[https://flowable.org/docs/userguide/index.html#bpmnJavaServiceTask](https://flowable.org/docs/userguide/index.html#bpmnJavaServiceTask)

and implement your own logic there.  
And the only file which is needed in the case of ScriptTask is process model.

Regards  
Martin
