6 Replies Latest reply on Feb 23, 2011 7:38 AM by Rohit Wadke

    sending emil in using JBPM

    Shantanu Upadhyaya Newbie

      Apologies if these have been answered before. I'm really pulling my hair out trying to figure out how to send an email via JBPM.

      I've read this file in the JBPM download :
      jbpm-jpdl-3.2.2/doc/userguide/html/mail.html

      My requirement is simple - send an email when a process transitions to another <task-node>

      <task-node name="A" end-tasks="true">

      <assignment pooled-actors="approver"/>



      </task-node>

      <task-node name="Manager" end-tasks="true">
      --> I want to send an email here - when JBPM transitions process to this node.


      <assignment pooled-actors="otherActor"/>


      </task-node>

      Here are the problems :
      1. How do I achieve the above ? I gather there are 3-4 ways, but I would appreciate it if someone can tell me the correct way. I've only worked on JBPM for 3 days.
      2. Where do I specify the mail server, user id, password - this is where I've hit the roadblock. I know the file is jbpm.cfg.xml. But what are the variable I need to specify. Or do I need to use mail-service.xml of JBOSS AS ?

      The documentation is just not helpful.

      Thanks very much.