Initiating Loan Origination BPM Process Over Email

Importing SSL certificates to Trust Keystore

As you would be using GMAIL, for incoming messages, you have to import gmail ssl certificates to weblogic trust store.

  1. Download the Gmail IMAP and SMTP certificates. This can be done with OpenSSL by running the following from command prompt:
  • openssl s_client -connect smtp.gmail.com:465
  • openssl s_client -connect imap.gmail.com:993

OpenSSL2. Copy the contents from –Begin Certificate– to –End Certificate– and create two text files as smtp.txt and imap.txt which contains certificates generated using openssl for SMTP and IMAP respectively.

3. Using Java Keytool, import the two certificates into trust store. You can create a new store. However we would use the exisitng DemoTrust.jks trust store. DemoTrust.jks trust store can be found at %WL_HOME%/server/lib/DemoTrust.jks and the keeytool is available @ %JAVA_HOME%/bin.

4. Use following command to import certificates to trust store-

keytool  -import -alias AliasName -keystore KeystoreLocation -file CertificateLocation

For Our example use –

keytool -import -alias gmailimap -keystore C:\Oracle\Middleware\wlserver\server\lib\DemoTrust.jks -file imap.txt

keytool -import -alias gmailsmtp -keystore C:\Oracle\Middleware\wlserver\server\lib\DemoTrust.jks -file smtp.txt

5. Enter “DemoTrustKeyStorePassPhrase” when prompt for DemoTrust store password.

6. Start/Restart the SOA server.

Configure Email Driver on WebLogic Server

  1. Login to WebLogic server as admin user (weblogic)
  2. Expand User Messaging Service
  3. Right Click usermessagingdriver-email and click on email driver properties as shown below –

EmailDriverConfiguration

4. Choose message exchange protocol as – MailAccessProtocol = IMAP

5. ReceiveFolder = INBOX

6. Furnish following details for incoming email server,port and SSL.

7. Let the incoming mail id be weblogic0009@gmail.com. You can change as per your requirements.

  1. Enter Email ID password as cleartext password in IncomingUserPasswords.
  2. Click Apply to Apply Changes.
  3. Right-click on soa-infra under SOA and navigate to the → SOA AdministrationWorkflow Notification Properties
  4. Set the Notification Mode to ‘Email’ and enter the values which you wish to use for from, actionable and reply to email addresses.

EmailDriverProperties3

  1. Click Apply and Restart SOA server for changes to persist.

Create a SOA/BPEL process to send email to “weblogic0009@gmail.com

To initiate the Loan Origination BPM process, you have to send email to weblogic0009@gmail.com’s INBOX as email driver is configured to pick messages from this box.

Download the Project – “PushToEmail” associated with this post.

  1. Open the project PushToEmail in Jdeveloper.
  2. Click on Composite.xml
  3. Open SendToEmail UMS adapter configuration
  4. It;s based on outbound JNDI – eis/ums/UMSAdapterOutbound
  5. Operation name defined is Outbound Send Notification
  6. Change following details as per your email configuration –

EmailDriverProperties4

  1. Notice the To address. It;s the address of the Loan Office which would receive the email in his/her Inbox from where the BPM process would initiate.
  2. Choose LoanOrigination schema associate with this blog and let the configuration of UMS be based on LoanOrigination schema.
  3. Create the BPEL process with default input and output
  4. Drag and assign values to UMS adapter input variable
  5. Save and Deploy the process.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s