3 Replies Latest reply on May 30, 2007 8:20 AM by Rick Te

    Questions about eMails in jBPM

    Rick Te Newbie

      Hello,

      I've got two questions :

      1. Is it possible to "associate" an email address to an user. If yes, can you give me an example ? (Ex: I want to give an address to "ernie").

      2. (if the 1st question is resolved) For example, I have a form which is filled by "cookie monster" and then, the task goes to the manager "ernie". In the new task of ernie, i've got an ActionHandler which send emails. Is it possible to recover the mail address of "cookie monster" without he don't have to write it and to use it in the action handler ?

      It's not very comprehensible, my english is bad, I hope that you'll understand nevertheless.

      Thanks,

      Richard T.

        • 1. Re: Questions about eMails in jBPM
          Ronald van Kuijk Master

          Did you look at the user tables in the db???? Please do and you'll be surprised that the most obvious place to check this provides you with the answer

          spoiler: yes

          • 2. Re: Questions about eMails in jBPM
            Rick Te Newbie

            I found and modified emails of those users.

            Now, i wanted to recover the email of the first user (the person who fill the form in the start state) in the second task node.

             <start-state name="Envoyer la demande">
             <task name="Envoyer form">
             <controller>
             <variable name="Produit" access="read,write,required" ></variable>
             <variable name="Quantite" access="read,write,required" ></variable>
             </controller>
             </task>
             <transition name="Envoi" to="Recevoir la demande"></transition>
             </start-state>
            
             <task-node name="Recevoir la demande">
             <task name="Recevoir form" swimlane="Manager">
             <controller>
             <variable name="Produit" access="read" ></variable>
             <variable name="Quantite" access="read" ></variable>
             </controller>
             </task>
             <transition name="Accepter" to="Maj Comptes">
             <action name="action" class="com.demande.action.DemandeMaterielHandler">
             <indic>oui</indic>
             </action>
             </transition>
             <transition name="Rejeter" to="Fin">
             <action name="action" class="com.demande.action.DemandeMaterielHandler">
             <indic>non</indic>
             </action>
             </transition>
             </task-node>
            


            I wanted to know if it was possible to get the email of the user of the start state, in the ActionHandler as I do with oui to do a thing like : ??? .

            I don't know if you understand what I mean, but thank you for your help.

            Regards,

            Richard T.

            • 3. Re: Questions about eMails in jBPM
              Rick Te Newbie

              EDIT :


              I wanted to know if it was possible to get the email of the user of the start state, in the ActionHandler as I do with oui to do a thing like : ??? .



              I wanted to know if it was possible to get the email of the user of the start state form in the ActionHandler as I do with
              <indic>oui</indic>
              by writing a line like this
              <mailReceiver> ??? </mailReceiver
              .

              Richard T.