5 Replies Latest reply on Aug 9, 2007 11:42 AM by Ross McDonald

    mail node how to define actor and send email

    Ross McDonald Novice

      Hi all,

      I am successfully sending an email to the process initiator, but in another step, I do not know how to send a mail from another mail node to a user I have called psmuser.

      I understand that 'initiator' is a special actor trapped by the start task, but I do not understand how I can create other 'actors' within the process... the pertinent parts of my process are listed below...









        • 1. Re: mail node how to define actor and send email
          Ross McDonald Novice

          whoops, I pressed tab and the form submitted...











          <mail-node name="notify-initiator-rejected" actors="#{initiator}">

          line manager rejected


          the line manager rejected for reason : #{reason}


          </mail-node>

          <mail-node name="notify-psm-red-light" actors="#{psm}">

          red light flagged building

          blah blah

          </mail-node>

          so initiator is attached to which ever user kicks the process off, and the email is retrieved from the database fine, can anyone provide me with an example of how to define another actor within the process, attached to a user defind in the jbpm database?

          Thanks for your help,

          Ross

          • 2. Re: mail node how to define actor and send email
            Ronald van Kuijk Master

            still not ok.... use [ c o d e ] tags (see the preview)

            • 3. Re: mail node how to define actor and send email
              Ross McDonald Novice

              hi,

              whoops again, sorry, I will try with the code tag...

              <swimlane name="initiator"/>
              
              <swimlane name="line-manager">
               <assignment expression="user(user)"></assignment>
              </swimlane>
              
              <swimlane name="psm">
               <assignment expression="user(psmuser)"></assignment>
              </swimlane>
              
              <mail-node name="notify-initiator-rejected" actors="#{initiator}">
               <subject>
               line manager rejected
               </subject>
               <text>
               the line manager rejected for reason : #{reason}
               </text>
               <transition to="psr rejected"></transition>
              </mail-node>
              
              <mail-node name="notify-psm-red-light" actors="#{psm}">
               <subject>
               red light flagged building
               </subject>
               <text>
               a red light building has been found for PSR
               </text>
               <transition to="psm endorse"></transition>
              </mail-node>


              So here the initiator email works fine, dispatching to whoever kicks off the process, but I am unsure how to specify other actors within the process, like the 'president' example in the docs...I have a user 'psmuser' in my JBPMTEST_ID_USER table, but no email process occurrs, I do not get an exception reported, and there is no pause in the process like when the initiator email is sent,

              thanks for your help,

              Ross

              • 4. Re: mail node how to define actor and send email
                Ross McDonald Novice

                hi guys,

                can anyone point me to any information on this, I am having trouble understanding how to define actors other than 'initiator', and so cannot send mail to anyone other than the process initator,

                thanks for your help,

                Ross

                • 5. Re: mail node how to define actor and send email
                  Ross McDonald Novice

                  I now understand this, and my problems were related to postfix on osx

                  Ross