5 Replies Latest reply on Aug 2, 2007 2:43 PM by kukeltje

    Mail notification

    orochimaru19860000

      Hello everybody!

      I have a problem with the mail notification, It doesn't work with me, I've tried to add this :

      <mail to='mohammed.ettaib@gmail.com'subject='urgent' text='the mailserver is down :-)' />

      anywhere in the process definition, but it dosen't work, I've tried also to add this node:

      <mail-node name="send email" to='mohammed.ettaib@gmail.com' subject="readmylips" text="nomoretaxes">

      </mail-node>

      but it doesn't work also.

      is there a configurationthat I should do before this?

      By the way, I'm deploying the process in tomcat 6.0

      Thank you

        • 1. Re: Mail notification
          kukeltje

          what is "it does not work" Exceptions? Atomic blast?

          • 2. Re: Mail notification
            orochimaru19860000

            Well, it doesen't give any exeption, but just a warning:

            [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks ==

            My processdefinition.xml is like this:

            
            <?xml version="1.0" encoding="UTF-8"?>
            
            <process-definition
             xmlns="" name="exempde">
             <start-state name="start">
             <transition name="debuter" to="identification"></transition>
             </start-state>
             <task-node name="identification">
             <task name="identify"></task>
             <transition name="evaluate" to="evaluer"> </transition>
             </task-node>
             <decision name="evaluer">
             <transition name="winner" to="winner">
             <condition>#{nom == 'ettaib'}</condition>
             </transition>
             <transition name="loser" to="loser">
             <condition>#{nom == 'waterman'}</condition>
             </transition>
             </decision>
             <task-node name="winner">
             <task name="win"></task>
             <transition name="fin1" to="end1"></transition>
             </task-node>
             <task-node name="loser">
             <task name="lose"></task>
             <transition name="fin2" to="end1"></transition>
             </task-node>
             <end-state name="end1"></end-state>
            </process-definition>


            Should I install a mail server?
            Have you already tested it?

            If you have any suggestion please let me know very soon.

            thx

            • 3. Re: Mail notification
              kukeltje

              so where is the mail node?

              The 'narrowing' is not important (as you can find out when you search for it)

              And yes we have tested it. And yes you need some kind of mailserver (obviously)

              • 4. Re: Mail notification
                orochimaru19860000

                thx for the response kukeltje

                Sorry for the code, this is the code I'm testing

                <?xml version="1.0" encoding="UTF-8"?>
                
                <process-definition
                 xmlns="" name="exempde">
                 <start-state name="start">
                 <transition name="debuter" to="identification"></transition>
                 </start-state>
                 <task-node name="identification">
                
                
                
                
                 <task name="identify"></task>
                 <transition name="evaluate" to="evaluer"> </transition>
                 </task-node>
                 <decision name="evaluer">
                 <transition name="winner" to="winner">
                 <condition>#{nom == 'ettaib'}</condition>
                 </transition>
                 <transition name="loser" to="loser">
                 <condition>#{nom == 'waterman'}</condition>
                 </transition>
                 </decision>
                 <task-node name="winner">
                 <task name="win"></task>
                 <transition name="fin1" to="end1"></transition>
                 </task-node>
                 <task-node name="loser">
                 <task name="lose"></task>
                 <transition name="fin2" to="end1"></transition>
                 </task-node>
                
                 <mail-node name="send email" to='ettaib_m@hotmail.com' subject="readmylips" text="nomoretaxes">
                 <transition to="the next node" />
                </mail-node>
                
                 <end-state name="end1"></end-state>
                </process-definition>
                


                Well actually I installed the jBossMailServer 1.0M4 and I configured it as shown in: http://wiki.jboss.org/wiki/Wiki.jsp?page=HowToInstallJBossMailServer1.0M4

                But there is still a problem, when I run the tomcat server (or the jbpm server), I got exceptions and the application does not work at all, souldn't I run both of them in the same machine?

                Please send me code of your process def that you've tested.

                I'm looking dorward to your answer

                Thank you

                • 5. Re: Mail notification
                  kukeltje

                  Tests are in the source of jbpm. And if you get exceptions and post topics about them, PLEASE POST THEM. We cannot guess.