Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19633

Email notifications for user tasks assigned to candidate groups do not use configured custom email templates


    • Bug Priority:
      Category 2
    • ACT Numbers:

      00964545, 00972155, 00991969, 00992504, 00993156, 01000047, 00999756

    • Prioritization Score:


      Email notifcations for user tasks assigned to candidate groups are always using the default email template and not the configured custom ones.

      Steps to reproduce
      1. Run DevNullSmtp.jar as fake SMTP server (http://www.aboutmyip.com/AboutMyXApp/DevNullSmtp.jar)

      2. Configure emails in activiti-app.properties to use the fake SMTP server, e.g.


      and start/restart APS

      3. In activiti-app via App Designer model a simple process: start event->user task->end event
      4. Enable email notifications for the user task by ticking "Allow email notifications"
      5. Assign the user task to candidate group "Administrators"
      6. Under Email template for the user task select Email: "Custom template" and set

      Subject: Hello from APS
      Email content: Hello world

      7. Publish the process as part of an app
      8. From the published app, start a new process
      9. Inspect the email(s) sent to the fake SMTP

      Expected behaviour
      An email should be sent out as configured to all members of the Administrators group (admin@app.activiti.com is at least a member) with subject "Hello from APS" and content "Hello world"

      Current behaviour
      The email was sent out to all members of the Administrators group using the default email template:

      Subject: A task was created for the group Administrators!

      The task 'User Task' was created for a group you are a member of. <br />The task appears in your Alfresco Process Services inbox.

      Supporting evidence

      • Reproduced in current latest APS 1.8.1 release
      • In fact, for user tasks assigned to candidate groups, neither custom template or email template do work, but always the default template is used
      • When assigning the user task to a single user, the custom email works fine:

      To: dennis.koch@alfresco.com
      Subject: Hello from APS
      MIME-Version: 1.0
      Content-Type: text/html; charset=us-ascii
      Content-Transfer-Encoding: 7bit

      Hello World


          Issue Links




                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  dkoch Dennis Koch
                • Votes:
                  1 Vote for this issue
                  9 Start watching this issue


                  • Created:

                    Structure Helper Panel