# How to create mail notification task inside a process using BPM Java API?

**URL:** <https://community.ofelia.com/t/how-to-create-mail-notification-task-inside-a-process-using-bpm-java-api/8718>\
**Category:** Q&A\
**Created:** [5 September 2017 03:42 UTC](https://community.ofelia.com/t/how-to-create-mail-notification-task-inside-a-process-using-bpm-java-api/8718 "2017-09-05T03:42:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ynraja](https://avatars.discourse-cdn.com/v4/letter/y/73ab20/32.png) [@ynraja](https://community.ofelia.com/u/ynraja)\
**Post date:** [5 September 2017 03:42 UTC](https://community.ofelia.com/t/how-to-create-mail-notification-task-inside-a-process-using-bpm-java-api/8718/1 "2017-09-05T03:42:15Z")

</div>

I’m new to Bonita BPM Java API; I want to create a process on the fly from my web app with some tasks and a notification mail should send at the end of the process.

Can somebody please help with any sample application in latest version (Bonita 7.5) OR documentation to how to create connector and send mail at the end of the process.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [5 September 2017 21:17 UTC](https://community.ofelia.com/t/how-to-create-mail-notification-task-inside-a-process-using-bpm-java-api/8718/2 "2017-09-05T21:17:14Z")

</div>

Hi,

An example is shown in the BPM Camp session. You can find the materials on Github [here](https://github.com/Bonitasoft-Community/bpm-camp/releases/download/7.5.1-1.7.0/bpm-camp-en.zip) .

Also a [session](https://www.bonitasoft.com/be-part-of-it/events/bpm-camp-3h-hands-session-bonita-bpm) is scheduled for September 12 if you interested.

Cheers

---

<div class="post-metadata">

**Author:** ![ynraja](https://avatars.discourse-cdn.com/v4/letter/y/73ab20/32.png) [@ynraja](https://community.ofelia.com/u/ynraja)\
**Post date:** [7 September 2017 14:01 UTC](https://community.ofelia.com/t/how-to-create-mail-notification-task-inside-a-process-using-bpm-java-api/8718/3 "2017-09-07T14:01:22Z")

</div>

Thank you Lionel for your response!

I know how to use connectors to send mail using diagram in studio, but I’m looking for a example / instructions how to do the same task in BPM engine Java API. Lets say **inside spring web application.**
