configure workitemhandler to send email in JBPM 7

后端 未结 1 1700
南旧
南旧 2021-01-21 11:14

below is the work item handler currently we have to send email in JBPM 7.32.

But we are getting error java.lang.RuntimeException: Unable to send email".

1条回答
  •  盖世英雄少女心
    2021-01-21 11:39

    1. Delete the Email task from your BPMN web Design (process graphic)
    2. Delete the Email from Work Item Handlers
    3. go to Settings/Service Tasks and Install Email (if it is installed, unistall it and click on install)
    4. fill the form with required parameters:
      host : smtp server host name
      port : smtp server port number
      username : account to be used when login to SMTP server (the email address)
      password : account's password to be used when login to SMTP server
    5. if you provide all this informations, the Work Item Handler will be generated automatically ( you can check it in Settings/Deployments/ work Item Handlers), DON'T EDIT IT !
    6. Go back to your Process, and insert again the email task as in the following screen shot
    7. Select your Email task, go to the Diagram properties (on the right), and click on Assignments.
    8. You can now assign global variables or constants to each attribute (Body,From,Subject,To)
      From : valid email address
      To : valid email address of the recipients (to specify multiple addresses separate them with semicolon ';')
      Subject : email subject
      Body : email body (can include html)

    0 讨论(0)
提交回复
热议问题