cancel
Showing results for 
Search instead for 
Did you mean: 

send email to a candidate group

lsmall
Champ in-the-making
Champ in-the-making
I have a timer boundary event on a userTask that transitions to a mail task. Is there any way to reference then userTask candidateGroup value in the To: field? I realize this an Activiti extension and not part of the BPMN standard, but I wondered if I could use an expression here like ${task1.candidateGroups} or something similar. I did not see an API call for this (i.e. Potential Owners prior to claiming the task), so I assume the task is only "aware" of the assignee.
3 REPLIES 3

lsmall
Champ in-the-making
Champ in-the-making
I just noticed the getIdentityLinksForTask method - is there any way to reference this list as an expression which resolves to a list of recipients for a mail task?

lsmall
Champ in-the-making
Champ in-the-making
After a discussion with my colleague, I feel the need to clarify this further. I was just wondering if the Activiti implementation exposed the candidateGroups/Users or Assignee values as a local task variable (which could be used to populate a process variable) or a process variable that I could reference at design time. I believe the answer is no, but I thought I would verify before extending the implementation. I believe these values are often used in the recipient list for notifications (i.e. notify a user that a task is waiting). And, since Activiti included a mail task implementation, I was wondering if there was a way to reference a task's identity values as recipients.

Alternatively, is there a way to reference a group as a recipient in the current mail task and identity management implementation? I am a process designer and am trying to figure out common usage scenarios for modelers versus exposing the implementation via the API.

lsmall
Champ in-the-making
Champ in-the-making
I understand that Activiti does not support a "no code" BPMN approach, but it would be nice to have a few helper features that are "no code". 😉

This task listener post looks promising and seems to confirm that there is no current support for this approach:

http://forums.activiti.org/content/notify-users-new-tasks-email