cancel
Showing results for 
Search instead for 
Did you mean: 

Get Candidate Groups from activiti

praveenpandrang
Champ in-the-making
Champ in-the-making
Hi, I am new to activiti. I have a situation where I need to send mail to specific user group when they receive some task. So, how do I get Candidate Group info assigned to user task.
3 REPLIES 3

vasile_dirla
Star Contributor
Star Contributor
Hi,
Maybe this could help you ?
<java>
((UserTask) flowElement).getCandidateGroups()
</java>

Hi,
What does User task and flowElement refer to in the above code.I am entirely new and could not understand.

vasile_dirla
Star Contributor
Star Contributor
Hi,
The BPMN model contains multiple flow elements. (because this model is describing an execution flow)
each flow element could be an UserTask, ServiceTask or something else…

Just design a simple process in the editor and export it as XML, then have a look into that file and you'll understand better.
also maybe this documentation will help you.
http://www.activiti.org/userguide/#bpmn20

you could obtain the BPMN model like that:
<java>
BpmnModel model = repositoryService.getBpmnModel(processDefinitionId);
</java>
and then just put a breakpoint on this line and inspect this object.