11-26-2019 03:30 PM
Pessoal, alguém pode me dizer se é possível receber notificacões por email quando uma tarefa - lista de tarefas e não tiver fluxo de trabalho - para designar um usuário e também quando tiver um novo tópico nas discussões?
11-26-2019 04:25 PM
I am not completely sure whether this is possible out of the box but You can implement a scheduled job to achieve this requirement. You can check the user's tasks and if the count is 0, send the email notification using MailActionExecutor.
You can refer this documentation which can guide you about implementing a scheduled job:
https://docs.alfresco.com/5.2/references/dev-extension-points-scheduled-jobs.html
https://hub.alfresco.com/t5/alfresco-content-services-blog/creating-scheduled-job-in-alfresco/ba-p/2...
You would be required to set following properties in alfresco-global.properties in order to enable outbound email.
E.g.
mail.host=smtp.yourcompany.com
mail.port=25
mail.encoding=UTF-8
Refer doc: https://docs.alfresco.com/6.1/concepts/email.html
Sample code to send email:
ActionService actionService = serviceRegistry.getActionService(); Action mailAction = actionService.createAction(MailActionExecuter.NAME); mailAction.setParameterValue(MailActionExecuter.PARAM_SUBJECT, subject); mailAction.setParameterValue(MailActionExecuter.PARAM_TO, email); actionService.executeAction(mailAction, null);
Explore our Alfresco products with the links below. Use labels to filter content by product module.