
Integrating Email task in Flowable. If doing from flowable-UI follow this.
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
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>
Code On!
Originally posted onBitsmonkey
Top comments(2)

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
For further actions, you may consider blocking this person and/orreporting abuse