Oracle SOA Suite- Implementing Email Notification


In this post, I am going to show how to implement email notifications in Oracle SOA Suite using BPEL process. So let's get started-


Implementing email notification in Oracle SOA Suite consists of below steps:


Environment-


  1. IDE- Oracle jDeveloper 11g
  2. Weblogic Server 12c
  3. Oracle SOA Suite 12c
High Level Steps
  1. Keep ready email server settings.
  2. Configure & enable usermessagingdriver-email for target SOA servers via console.
  3. Setting up Email driver (usermessagingdriver-email )with email server settings via enterprise manager.
  4. Enable notifications for SOA workflows(make sure either All or EMail option is selected)..
  5. Create SOA composite application
  6. Deploy it on SOA server.
  7. Testing & done.
1. Keep ready email server settings.
Keep ready your below email server settings:
  1. Outgoing Mail Server          : smtp.domain.com
  2. Outgoing Mail Server Port   : xxx
  3. Default From Address         : username@doamin.com
  4. Outgoing Username            : actualemailid@domain.com
  5. Outgoing Password             : *******
  6. Incoming Mail Server          pop.domain.com
  7. Incoming Mail Server Port   xxxx
  8. Incoming Mail IDs(use Outgoing Username/Password) 
2. Configure & enable usermessagingdriver-email for target SOA servers via console

  1. Login to weblogic console(http://host:port/console)
  2. Select domain in left panel
  3. Click on deployments
  4. Search for usermessagingdriver-email & click it
  5. Go to 'Settings for usermessagingdriver-email'

  6. Select targets
  7. Check all & click on 'Change Targets'
  8. Now select the servers where you want, I selected Admin Server L& SOA Server
  9. Click on 'Yes' button.
  10. Now your usermessagingdriver-email is enabled.
3. Setting up Email driver (usermessagingdriver-email )
  1. Login to weblogic em console(http://host:port/em).
  2. Now I want to configer email driver for soa_server1.
  3. Go to User Messaging left navigation panel and select usermessagingdriver-email (soa_server1).
  4. Now click on usermessagingdriver-email and select email driver properties
  5. Click on plus sign '+' to create a new configuration(this option comes in 12c version, 11g opens directly a email driver configuration page)
  6. Now fill the details under 'Create Driver Properties' with the help of email driver settings availabe in Step 1
  7. Test it and Ok.
4. Enable notifications for SOA workflows.
Now driver has been configured and need to enable notifications. This ca be done via below navigation:

SOA --> soa-infra(soa server) -->Right Click --> SOA Administration --> Workflow Properties --> Workflow Notification Properties --> Notification Mode : All/Email/SMS


Now our back end system is ready for sending SMS notifications for SOA workflows.

5. Create SOA composite application via jDeveloper

  1. Start jDeveloper and create a new application 'EmailDemoApplication' of SOA type.
  2. Create a new project 'EmailDemoProject' & finish.
  3. Now we need a schema i.e. xsd. You can create your own schema or just add a bpel process 'EmailBPELProcess' 
  4. Process- Synchronous
  5. Keep option checked - expose as a web service
  6. Accept all defaults, 1 input & 1 output variable.
  7. Ok.
  8. Double click on bpel process and there are two activities availabe in composite swimlane.
  9. Add an assign activity
  10. Double click and do assignment for output variable using expression builder "concat('Hello user email is: ,',bpws:getVariableData('inputVariable','payload','/client:process/client:input'))"
  11. Ok.
  12. Now add an email activity from component palet below the assign activity.
  13. Configure email activity
  14. To: use expression builder to select input variable " <%bpws:getVariableData('inputVariable','payload','/client:process/client:input')%>"
  15. CC: leave it blank
  16. BCC: leave it blank
  17. Reply To: leave it blank
  18. Subject: Test email via bpel process
  19. Message: Hello, this is a test message via SOA-BPEL workflow
  20. Save it.

6. Deploy it on SOA server
Now create a connection via jDeveloper to your target soa server & deploy the application.

7. Testing the web service
  1. Login to em console
  2. Go to your soa server
  3. Select deployed composites and select your project.
  4. Below web service testing screen will open.
  5. Enter an email id and click on Test Web service button & check it in flow trace and the email(provided in textbox).

Note:  Notification status can be verified inside usermessagingserver -> Message Status

Also check my this blog How to send SMS notifications via Oracle SOA Suite- https://k10technical.blogspot.com/2017/04/oracle-soa-suite-implementing-sms_28.html

Comments

  1. Enjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. Thank you and good luck for the upcoming articles Oracle soa certification

    ReplyDelete
  2. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    top microservices online training
    microservices online training
    best microservices online training

    ReplyDelete
  3. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    best microservices online training

    ReplyDelete
  4. Thanks a lot for sharing a great blog I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more keep going on it helped me a lot I have gained a lot of knowledge by reading your blog.

    Oracle SOA Training
    Oracle SOA 12c Training
    Oracle soa online training
    Oracle soa course
    oracle soa suite training

    ReplyDelete
  5. Thanks a lot for sharing a great blog I was browsing through the internet looking for Oracle SOA and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information blogs about Oracle SOA at Oracle SOA Blogs. Bookmarked this page, it helped me a lot and I have gained a lot of knowledge by reading your blog and Oracle SOA Training

    ReplyDelete
  6. Thanks a lot for sharing a valuable blog on Oracle SOA Training. I was browsing through the internet looking for Oracle SOA Training and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information about Oracle SOA by attending Oracle SOA Training. You can learn about interview questions by visiting fusion Interview Questions

    ReplyDelete
  7. Hi there! It is a very interesting blog on SOA topic. I was surfing through the internet for Oracle SOA interview questions and came across your blog. You definitely have a good understanding of the topic. You can find more information on Oracle SOA training here.

    ReplyDelete
  8. Thanks a lot for sharing a valuable blog on Oracle SOA Tutorial. I was browsing through the internet looking for Oracle SOA Tutorial and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, You can learn more about Oracle SOA by visiting Oracle SOA Tutorial

    ReplyDelete
  9. Thanks for sharing this great information on Oracle SOA. Actually I was looking for the same information on internet for SOA Interview Questions and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about SOA by attending Oracle SOA Training training .

    ReplyDelete
  10. Thanks for sharing this great information on Oracle SOA. Actually I was looking for the same information on internet for SOA Interview Questions and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about SOA by attending Oracle SOA Training training .

    ReplyDelete
  11. Thanks for sharing this great information on Oracle SOA. Actually I was looking for the same information on internet for SOA Interview Questions and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about SOA by attending Oracle SOA Training training .



    ReplyDelete
  12. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle Fusion Procurement . Actually I was looking for the same information on internet for Oracle Fusion Supply Chain Management Cloud and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more aboutOracle Fusion Manufacturing . By attending Oracle Fusion Financials .

    ReplyDelete
  13. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle SOA Interview Questions and Answers
    . Actually, I was looking for the same information on internet for
    Oracle SOA Training and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about Oracle SOA Tutorial also.

    ReplyDelete

  14. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle SOA Training
    . Actually, I was looking for the same information on internet for Oracle SOA Interview Questions and Answers

    and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about Oracle SOA Tutorial also.

    ReplyDelete

  15. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle SOA Training
    . Actually, I was looking for the same information on internet for Oracle SOA Interview Questions and Answers

    and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about Oracle SOA Tutorial also.

    ReplyDelete
  16. It was a great blog. It had all the required information that was needed for a better understanding of the topic.I'm glad you shared this with us, thanks. Here is a referred link same as yours   oracle soa training

    ReplyDelete
  17. That is exactly what I was looking for !
    Thank you !!

    ReplyDelete
    Replies
    1. Glad to see your happiness!!
      Welcome and thanks for your valuable comment.

      Delete
  18. Thank you for sharing wonderful information with us to get some idea about it.

    soa Online Training Hyderabad

    ReplyDelete
  19. I have found great and massive information. Thanks for sharing
    SOA Training
    Oracle SOA Training

    ReplyDelete
  20. Smtp email server
    The Simple Mail Transfer Protocol (SMTP) server is a communication protocol or teh technology behind email communication. for more information about smtp email server visit here.

    ReplyDelete
  21. I appreciate you taking the time and effort to share your knowledge. This material proved to be really efficient and beneficial to me. Thank you very much for providing this information. Continue to write your blog.

    Data Engineering Services 

    Artificial Intelligence Services

    Data Analytics Services

    Data Modernization Services

    ReplyDelete
  22. This comment has been removed by a blog administrator.

    ReplyDelete
  23. This comment has been removed by a blog administrator.

    ReplyDelete
  24. This comment has been removed by a blog administrator.

    ReplyDelete
  25. This comment has been removed by a blog administrator.

    ReplyDelete
  26. This comment has been removed by a blog administrator.

    ReplyDelete
  27. This comment has been removed by a blog administrator.

    ReplyDelete
  28. This comment has been removed by a blog administrator.

    ReplyDelete
  29. This comment has been removed by a blog administrator.

    ReplyDelete
  30. This comment has been removed by a blog administrator.

    ReplyDelete
  31. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment

Popular posts from this blog

Oracle SOA Suite 12c- PKIX path building failed & unable to find valid certification path to requested target

Migration of Oracle SOA Suite Composite from 11g to 12c