I often get asked to help developers with setting up UMS, but in fact mostly focusing on the SMTP server.

In the next steps I will show how you can setup a HelloWorld notification Service with reviewing the results in less than five minutes.

Prerequisites:

Installed SOA or BPM Quickstart. See Danilos post for details : https://thecattlecrew.wordpress.com/2014/06/28/oracle-bpm-12c-quick-start-installation-uncensored/

Get FakeSMTP.jar on your development machine: https://nilhcem.github.io/FakeSMTP/

Step 1 „“ Start WLS

Start the IntegratedWebLogicServer

Step 2 – Start the Fake SMTP

Enter in the command line:

java -jar fakeSMTP-2.0.jar

After the Application has started up click the „Start Server“ button.

fake_smtp_cmd

 

fake_smtp_UI

Step 3 „“ Configure UMS in the Enterprise Manager

Log into EM

Edit the Email Driver Properties

ums_1

Create a new Configuration with the name localhost and the outgoing mail server localhost and save it.

ums2

Step 4 „“ HelloWorld Notification Composite

Create a new SOA Application with a SOA Project

bpel1

Create a Synchronous BPEL with standard settings

bpel2

bpel3

Add an UMS as a reference, add only outbound notification details, set Message as String type and wire it to the BPEL

bpel5

bpel6

Edit the BPEL Flow

Add an invoke of the UMS reference and create a new input variable for the UMS reference.

bpel7

Add an Assign before the Invoke and map the BPEL input string to the message payload.

bpel8

Deploy the composite to the application server and test your service via EM

And there you go.

finish1

finish2

finish3

 

 

Alle Beiträge von Benjamin Huskic

2 Kommentare

  1. If we do not set the workflow settings, email will not be sent?
    For me instance is getting created for soa composite, but mail is not being sent.. Please help

  2. Hi,

    Thanks for the post, all the things worked perfectly but I couldnt receive the email to the configured to address. I could see that the mails are coming to fake smtp server and i could see them on the UI of fake SMTP. I appreciate your comments here.

Schreibe einen Kommentar