Need help with a BPM

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abidoss
    Senior Member
    • Mar 2023
    • 228

    Need help with a BPM

    I programmed this BPM to send emails based on certain conditions. Everything works fine, but sometimes the email is not sent due to several reasons, such as the limit on emails sent per hour.

    Honestly, I don’t know how to add the rest of the process for these cases. If the process fails, it should attempt to resend the email 2 or 3 times. Otherwise, a notification should be sent to me.

    Click image for larger version

Name:	image.png
Views:	51
Size:	29.3 KB
ID:	113141
  • yuri
    Member
    • Mar 2014
    • 8438

    #2
    You can use a boundary Error Event (on each Message Task) to catch sending errors, then reflow it back to the same Message task. You can have some counter (a variable in Formula) to increment on each failure. If number is greater than some value, then do not reflow back but throw an error to terminate the process.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • abidoss
      Senior Member
      • Mar 2023
      • 228

      #3
      Is there an example?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8438

        #4
        Example:

        Click image for larger version

Name:	image.png
Views:	13
Size:	11.8 KB
ID:	113233
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...