Grouping Mail Tasks
Hello,
I have a workflow that assigns monthly validation to tasks that have either not been validated, or that are over a year old since the last validation date. This month was our first time running the task and we had a large amount of tasks go out for validation. In the workflow at the half way point is a mail task to send an update to each data steward within the domain of the asset being validated. Currently with the way that the workflow is configured it sends one email per task to each data steward. Due to some individuals being in multiple communities as data stewards this caused a massive amount of emails to go out to the user, more than we expected.
Has anyone found a way to enable grouped emails to go out through the mail task? I know that you can use beans, and the task listener, but the documentation is not the greatest on how to achieve this. Furthermore configuring listeners in Eclipse has a bug it would appear so you have to manually configure it within the XML file of the workflow. This may be one of the reason’s why the workflow is not picking up the code as well as I am not sure if my formatting is 100% correct.
Here is the XML piece for the listener of ActionMailSender, if anyone can help or has any additional ways of achieving this that would be great.
<activiti:taskListener event=“create” class=“com.collibra.dgc.workflow.api.listener.ActionMailSender”>
<activiti:field name=“grouped”>
activiti:expression</activiti:expression>
</activiti:field>
</activiti:taskListener>
Thanks for your time!
arthurburkhardt
·4 years ago · EditedWhy not simplify the design and write a workflow to generate a monthly report for each person?
Just disable the notifications on tasks and write a workflow with a monthly time trigger, then group the tasks per person and put the list of tasks in the email.
joshuahenderson
OP4 years ago · EditedThat’s a good idea Arthur! I appreciate your input. I think that’s an idea to put in the backlog for sure. The only issue with the validation task side of things is that we only allow 10 business days for the tasks so it’s not a true 30 days task or anything like that.
That being said over the weekend I did dig deeper into customization of email templates and may look at using them over the mail tasks for the 5 day email, and missed task emails that the workflow has.