Search This Blog

Thursday, September 22, 2016

How to Automate Email Server setting's for Human WorkkFlow in SOA 11g and and 12c

How to Automate Email Server setting's for Human WorkkFlow in SOA 11g and and 12c
How to Automate Email Server setting's for Human WorkFlow in SOA 11g 


First run the program

c:\jdk1.7.0_79\jre\bin\java.exe -classpath D:\fmw1117\Middleware\Oracle_SOA1\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar;D:\fmw1117\Middleware\wlserver_10.3\server\lib\wljmxclient.jar oracle.bpel.services.notification.util.ConfigureNotification

and then run with the getConfig option , this creates a blank notification.properties with all the properties if you have n't configured email previously

c:\jdk1.7.0_79\jre\bin\java.exe -classpath D:\fmw1117\Middleware\Oracle_SOA1\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar;D:\fmw1117\Middleware\wlserver_10.3\server\lib\wljmxclient.jar oracle.bpel.services.notification.util.ConfigureNotification localhost 7001 weblogic Welcome1 WLS notification.properties getConfig

This writes the file notification.properties in the following format ,

+++

c:\jdk1.7.0_79\jre\bin\java.exe -classpath  D:\bpm12cqs\soa\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar;D:\bpm12cqs\wlserver\server\lib\wljmxclient.jar oracle.bpel.services.notification.util.ConfigureNotification  iscsoavm21.idc.oracle.com 7001 weblogic Welcome1 WLS notification.properties getConfig
Hostname :[iscsoavm21.idc.oracle.com] Port :[7001] AdminUser :[weblogic] AppServer :[WLS] propertyfile :[notification.properties] flag :[getConfig]
Retrieving usermessagingdriver-email-driverconfig ....
OutgoingMailServer=
OutgoingMailServerPort=25
OutgoingMailServerSecurity=None
OutgoingEmailId=
OutgoingUsername=
OutgoingPassword=
MailAccessProtocol=IMAP
IncomingMailServer=
IncomingMailServerPort=
IncomingMailServerSSL=false
IncomingEMailId=
IncomingUsername=
IncomingPassword=
ImapAuthPlainDisable=false
RetryLimit=-1
MailDelFreq=600
AutoDelete=false
Debug=false
CheckMailFreq=30
ReceiveFolder=INBOX
ProcessingChunkSize=100
Retrieving worklfow-notification-config ....
HWFMailerNotificationMode=NONE
ASNSDriverEmailReplyAddress=no.reply@yourdomain.com
ASNSDriverEmailFromAddress=accountId@yourdomain.com
ASNSDriverEmailRespondAddress=respondToaccountId@yourdomain.com
Storing the config to the properties file....
Done.

+++

Now open the notification.properties and edit the values as shown below ,

# User Messaging Email Driver config
OutgoingMailServer=localhost
OutgoingMailServerPort=25
OutgoingMailServerSecurity=None
OutgoingEmailId=bpelsender@localhost
OutgoingUsername=bpelsender@localhost
OutgoingPassword=Welcome1
MailAccessProtocol=IMAP
IncomingMailServer=localhost
IncomingMailServerPort=143
IncomingMailServerSSL=false
IncomingEMailId=bpelreceiver@localhost
IncomingUsername=bpelreceiver@localhost
IncomingPassword=Welcome1
ImapAuthPlainDisable=false
RetryLimit=-1
MailDelFreq=600
AutoDelete=false
Debug=false
CheckMailFreq=30
ReceiveFolder=INBOX
ProcessingChunkSize=100
# HWF config
HWFMailerNotificationMode=EMAIL
ASNSDriverEmailReplyAddress=no.reply@yourdomain.com
ASNSDriverEmailFromAddress=bpelsender@localhost
ASNSDriverEmailRespondAddress=bpelreceiver@localhost

Now run the command

c:\jdk1.7.0_79\jre\bin\java.exe -classpath D:\fmw1117\Middleware\Oracle_SOA1\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar;D:\fmw1117\Middleware\wlserver_10.3\server\lib\wljmxclient.jar oracle.bpel.services.notification.util.ConfigureNotification localhost 7001 weblogic Welcome1 wls notification.properties setConfig

This will set the required properties for the Email Server Configuration.

To cross check the values you have set run with the getConfig options agian

c:\jdk1.7.0_79\jre\bin\java.exe -classpath  D:\bpm12cqs\soa\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar;D:\bpm12cqs\wlserver\server\lib\wljmxclient.jar oracle.bpel.services.notification.util.ConfigureNotification  localhost 14001 weblogic Welcome1 WLS notification.properties getConfig

Please note that this is not available with SOA 12c.



Tags: Publish
September 15, 2016 at 03:25PM
Open in Evernote

No comments: