5 Replies Latest reply on Jul 8, 2015 12:28 PM by michelep

    JBPM 6.1 send email

    michelep

      Hello,

      I have a question about the email task-service. If the smtp server is down the task doesn't work, how can I do to go to the next task however?

        • 1. Re: JBPM 6.1 send email
          swiderski.maciej

          use error catch event attached to email node and in case of exception go on with you process maybe via some administration step to inform about the issues.

           

          HTH

          • 2. Re: JBPM 6.1 send email
            michelep

            Hi Maciej and thanks for your answer. My work kept me away from jbpm in recent months so sorry for the delay.

             

            Can you explain me how I can use the error chatch event in a jbpm model?

             

            Thank you

            • 3. Re: JBPM 6.1 send email
              jimmy001

              Hi,

               

              take a look here:

              Chapter 22. Exception Management

              • 4. Re: JBPM 6.1 send email
                michelep

                I had already read this, but I have some difficulty to apply the cath error event to my model. If I have an error to send email I would to set the process to go on. I've attached a screenshot of a test model. What are the parameters that I've to set to the error event? Is this the correct approach to handle the errors? In this example if I set up an incorrect address the process fails to start and it blocks the run to the Email task.

                 

                testError.PNG

                I'm sorry for my English

                • 5. Re: JBPM 6.1 send email
                  michelep

                  I've solved the problem. in the erroRef parameter I've set "org.jbpm.bpmn2.handler.WorkItemHandlerRuntimeException". This is my model

                  testError.PNG

                  In this example, the Script task sets the correct address. Now I think to continue the process after an error event the method is very similar to this.