Sending email using flowable workflow engine

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 config flowable.mail.server.host=smtp.google.com
flowable.mail.server.port=587
flowable.mail.server.username=arjun
flowable.mail.server.password=arjun
flowable.mail.server.use-tls=true


Enter fullscreen mode Exit fullscreen mode

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



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


Enter fullscreen mode Exit fullscreen mode

Code On!

Originally posted on Bitsmonkey

原文链接:Sending email using flowable workflow engine

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容