Skip to main content
Version: 6.0.2

Email Configuration


Send an Email After Submitting the Form

The following steps explain how email integration is done in a workflow.

Prerequisites

The notification_email.bpmn and email-template-example.dmn must be deployed to formsflow.ai.

  1. Deploy the notification_email.bpmn and email-template-example.dmn using the formsflow.ai process tab.

    Image

  2. Configure the NotifyListener to the desired workflow step. Add org.camunda.bpm.extension.hooks.listeners.task.NotifyListener to the ‘CREATE’ event of the task listener. This will send an email upon task creation.

    Image

    Refer NotifyListener and add messageId, category, groupsOnly, and emailGroups fields.

    The below steps will explain how NotifyListener is linked with the Workflows (notification_email.bpmn and email-template-example.dmn).

  3. The field messageId in NotifyListener should have the value “Message_Email”, as this field maps to the message event in the notification_email.bpmn.

    Image

    The below screenshot displays the ‘Message_Email’ value in the deployed notification_email.bpmn.

    Image

  4. The notification_email workflow connects with the email-template-example.dmn with the decision reference value ‘email-template-example’.

    Image

    The below screenshot displays the ‘email-template-example’ value in the email-template-example.dmn.

    Image

  5. EmailAttributesListener is configured between the email template and email connector, which takes output data from the DMN template and transfers it to the email connector.

    Image

    For more information about EmailAttributesListener, click here.

  6. Finally, update the mail-config.properties with valid email configurations.

    Image

Email Configuration is completed now.