Part 2 - Send emails from Oracle BPM using Mail Activity - Implement Mail Activity in BPM

Before going ahead with this implementation, please ensure you have completed the EM Configuration. This can be completed by following Part 1 of this blog post:
Part 1 - Send emails from Oracle BPM using Mail Activity - Weblogic EM Configuration

Implement a send Mail activity within a BPM Process in JDeveloper BPM Studio

In a BPM Process there is quite often the requirement to send an email to user(s) to keep them updated or to make them aware of an event that has taken place. It is actually straight forward to achieve this.

We will use a very simple BPM process to illustrate:

1. Firstly, we will create a Data Object to store the entire output payload of the worked human task called Task_DO of type TaskExecutionData:

2. Next, select the Mail Activity from the Notification components:

And drag it into the BPM Process:

3.  In the General tab, we populate 2 fields. 
     - Enter Default into the From Account field, this will be obtained from your configuration in EM.
     - Enter the Email address you want to send an email to in the To field. This can also be extracted from a Data Object via XPath. To send to multiple emails, separate each email address with a semi colon (;)

4. In the Content tab, you populate the Subject and Body of the email. This can be made up of static text or from expressions as shown below:
For reference, the expression in the Body is: concat('Task Number ', bpmn:getDataObject('Task_DO')/ns:systemAttributes/ns:taskNumber, ' has been worked by ', bpmn:getDataObject('Task_DO')/ns:systemAttributes/ns:updatedBy/ns:displayName, ' with an outcome of ', bpmn:getDataObject('UserTask_outcome'))

5. We can also add attachments to the mail via the Attachments tab. The value must map to an element of type base64Binary, which holds the document in a binary format. The Mime Type must reflect the type of stored document too.



If you navigate back to your Composite, you will see a new external reference created to a Notification Service Web Service. The WSDL referenced is NotificationService.wsdl and is stored in MDS so you do not have to worry about maintaining it:


6. Now, your implementation from a development perspective is complete. Let's see the project in action.

Deploy the BPM project to your Weblogic SOA server.

7. Create an instance for the deployed BPM Project via EM:


8. Work the running instance of the Human Task:


9. Check the BPM Flow to confirm a successful flow.


10. Check your Email Inbox for the Email address you entered. Voila!


11. You can also monitor the status of instances of the Email User Messaging Driver from the EM:



42 comments:

  1. Hi, here you didn't defined Data Objects... you directly mapped them

    ReplyDelete
  2. How can I pass an email dynamic in Properties Notification - General - From Account instead of Default? Im passing an email that I have in my payload but is not working :(. Have you ever tried this before?

    ReplyDelete
  3. I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information. email extractor using kali

    ReplyDelete
  4. The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. I will never forget to visit your site again and again. what is gmass service

    ReplyDelete
  5. A sure hit! Very informative! All the lessons in the course was taught properly. I can’t wait to use the knowledge I got in naming my business. Email Extractor

    ReplyDelete
  6. it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information. Yellow Pages Scraper

    ReplyDelete
  7. You did an excellent job thanks dear for sharing you ideas. I am really impressed with your blog.
    Etabs Torrent

    ReplyDelete
  8. It’s really a nice and helpful piece of info. I’m glad that you just shared this helpful info with us. Please keep us informed like this. Thanks for sharing.Vue Scan Pro

    ReplyDelete
  9. attachments to the mail via the Attachments tab. The value must map to an element of type base64Binary.Sony Vegas Pro crack

    ReplyDelete
  10. this websites attracts to me very lots. please visit this sites.Activators for Windows

    ReplyDelete
  11. To get sending Emails to work from your SOA/BPM process, there is a mandatory requirement to firstly configure Weblogic Enterprise Manager (EM) so that it registers with your Email server.

    Once it has been set up, when a send Email component is implemented, it will use this configuration at run time to Send/Receive emails successfully. Follow below steps to make the required configuration in EM. You are a good writer.
    Topaz AI Gigapixel Latest version

    ReplyDelete
  12. To get sending Emails to work from your SOA/BPM process, there is a mandatory requirement to firstly configure Weblogic Enterprise Manager (EM) so that it registers with your Email server.
    TablePlus Crack

    ReplyDelete
  13. https://cracksys.com/anytrans-crack/

    ReplyDelete
  14. E-Mail. User. SMS. Voice. IM. This tasks uses the Oracle Notification Service. To configure this task you must provide expressions
    WinToUSB

    ReplyDelete
  15. You write in such an amazing style and I really enjoy visiting your website. I hope you'll continue to write like this in the future.

    Helium 15.0.17757.0 Crack

    ReplyDelete


  16. Hello guys, the suggested page has a creative information, As I was searching to get more accurate terms, about the

    topic, you have released here. This is more curative for me to find after so a long time. But the number of interest

    tends that, you are leading numerous people about it. Anyway, got my satisfaction to evaluate my issues using this

    blog. Thank you.

    Wondershare DVD

    ReplyDelete
  17. The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. Driver Easy Pro Serial Key

    ReplyDelete
  18. Thank you for posting such a great article! I found your website perfect for my needs. ApowerREC Crack

    ReplyDelete
  19. hi Dear, The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. EaseUS Data Recovery Crack

    ReplyDelete
  20. You write in such an amazing style and I really enjoy visiting your website. I hope you'll continue to write like this in the future.proscrack

    ReplyDelete
  21. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to crackkeywin.com and keygeninja.com software or any other basic crack version. I always really on others to solve my basic issues. But thankfully, I recently visited a website named seriallink.org

    IObit Malware Fighter Pro Crack

    ReplyDelete
  22. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to fcdownload.com and hussainpc.com software or any other basic crack version. I always really on others to solve my basic issues. But thankfully, I recently visited a website named 4keygen.com


    Oxygen XML Editor Crack

    ReplyDelete
  23. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to fcdownload.com and hussainpc.com software or any other basic crack version. I always really on others to solve my basic issues. But thankfully, I recently visited a website named profullpc.org

    SysGauge Ultimate Crack

    ReplyDelete

  24. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to fcdownload.com and hussainpc.com software or any other basic crack version. I always really on others to solve my basic issues. But thankfully, I recently visited a website named 4keygen.com

    Cool Edit Pro Crack

    ReplyDelete
  25. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to crackkeywin.com and keygeninja.com software or any other basic crack version. I always really on others to solve my basic issues. But thankfully, I recently visited a website named activatorkey.net
    Softany WinCHM Pro Crack

    ReplyDelete
  26. wow.this websites contain lots of information.please click here.CapCut APK

    ReplyDelete
  27. Hi to all, how is everything, I think every one is getting more from
    this website, and your views aree nice for new users.

    Feel free to visit my website click here

    ReplyDelete
  28. i Dear, I really like your post. Its writing style is so amazing. Thank you for sharing it.

    Typing Master Pro

    ReplyDelete
  29. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to crackkeywin.com and keygeninja.com software or any other basic crack version. I always really on others to solve my basic issues. But thankfully, I recently visited a website named seriallink.org

    Driver Genius Pro Crack

    ReplyDelete

  30. Your post style is super Awesome and unique from others I am visiting the page I like your style.

    vMix Pro

    ReplyDelete
  31. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to crackkeywin.com and keygeninja.com software or any other basic crack version. I always really on others to solve my basic issues. But thankfully, I recently visited a website named seriallink.org

    Substance Painter Crack

    ReplyDelete


  32. Clip Studio Paint EX Crack

    I am very happy to read this article.Thanks for giving us Amazing info. Fantastic post. I appreciate this post.

    ReplyDelete
  33. I like your post style as it’s unique from the others I’m seeing on the page. Diskinternals Linux Reader

    ReplyDelete
  34. Really very nice information on this site. Thanks for sharing this nice information. I hope you'll continue to write like this in the future.
    Advanced Systemcare Pro

    ReplyDelete
  35. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to keygeninja.com software or any other basic crack version. I always really on others to solve my basic issues. But thank fully, I recently visited a website named seriallink.org

    Ummy Video Downloader Crack

    ReplyDelete
  36. Many thanks for the shared this informative and interesting post with us.
    https://procracklink.com/propresenter-crack/

    ReplyDelete
  37. Incredible post.It is really a useful piece of information. I’m glad that you shared this useful info with us.
    Thanks for sharing." https://cracked1.com/neural-dsp-fortin-nameless-suite-crack/"> neural dsp fortin nameless suite

    ReplyDelete
  38. I was searching some blogs to read on google and found this blog post page. I must say it is very informative as well as interesting. Thanks to the author of this post/page for writing such wonderful lines. GoodSync Enterprise

    ReplyDelete