2 Replies Latest reply on May 27, 2009 11:13 AM by Ardavan Metghalchi

    Sending mail to multiple actors in AssignmentHandler...

    Ardavan Metghalchi Newbie

      Hi

      I am using a jbpm "mechanism" to send email.
      I am using it in an AssignmentHandler:

      String groupNameId =
       ldapService.assignTaskToGroup(GROUPNAME, code);
       assignable.setPooledActors(new String[] { groupNameId });
       System.out.println("Assigned to " + groupNameId);
      
       // Send email to each user in the group
       String to = ldapService.getGroupMembersEmail(groupNameId);
       CustomMail mail = new CustomMail("task-assign",null, to, null, null);
       mail.execute(executionContext);
      


      I just wanted to know if I'm not doing anything bad.

      thank you

      Ardavan