Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Sending email using flowable workflow engine
Arjun Shetty
Arjun Shetty

Posted on

     

Sending email using flowable workflow engine

Integrating Email task in Flowable. If doing from flowable-UI follow this.

Alt Text

Once you are done with the filing To, From, Html/HtmlVar, etc,. Configure the email server configuration in your spring application.

# email configflowable.mail.server.host=smtp.google.comflowable.mail.server.port=587flowable.mail.server.username=arjunflowable.mail.server.password=arjunflowable.mail.server.use-tls=true
Enter fullscreen modeExit fullscreen mode

In case you want to add the email task manually paste this node to your workflow bpmn file.

<serviceTaskid="RejectionEmail"name="Rejection Email"flowable:type="mail"><extensionElements><flowable:fieldname="to"><flowable:string><![CDATA[arjun@bitmonkey.in]]></flowable:string></flowable:field><flowable:fieldname="subject"><flowable:string><![CDATA[Rejection]]></flowable:string></flowable:field><flowable:fieldname="html"><flowable:string><![CDATA[<a href="http://bitsmonkey.in">Rejection reason</a><inputtype="textarea">Dummy Message</input>]]></flowable:string></flowable:field></extensionElements></serviceTask>
Enter fullscreen modeExit fullscreen mode

Code On!

Originally posted onBitsmonkey

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
srinathidm profile image
srinathidm
  • Joined

Can i get sample project for mail using flowable in spring-boot

CollapseExpand
 
luonganhtu19 profile image
luonganhtu19
  • Joined

Please,could you help me? I had config project same you. But not run project. it error

2022-08-08 13:24:35.276 ERROR 8592 --- [nio-8080-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.flowable.common.engine.api.FlowableException: Could not send e-mail in execution 25015] with root cause

javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25, response: 421

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromArjun Shetty

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp