Steps to configure and test the Dynamic Email feature of Oracle AS B2B 10.1.2.0.2
- Import the tutorial samples of ( for e.g:EDIFACT ) of 10.1.2.0.2 in 2 environments for Acme and GlobalChips
- Provide a new delivery channel detail and create the agreement for both Acme and GlobalChips
- In the delivery channel provide the endpoint of the IMAP Server.
- Provide the username/password (e.g.: user1/user1)
When observed in the log/the email client, we can see the message in the inbox of User2
Scenario 2:Enable the actionName attribute to test the dynamic email scenario.
actionName = DynamicEmail:GlobalChips_1234:firstname.lastname@example.org;EmailSubject:UNB
In this case, edit endpoint details to point to another email id email@example.com and change the username/password.
When observed in the log/the email client, we can see the message in the inbox of User3. Though the in the acme machine, the configuration for GlobalChips is reading user2, due to the dynamic email feature, the mail gets delivered to user3. Ideally, this can be well tested if we have 3 environments for each user.Sample enqueue script:
queue = IP_OUT_QUEUE
from = Acme
to = GlobalChips
#actionName = DynamicEmail:GlobalChips_1234:firstname.lastname@example.org;EmailSubject:UNB
#eventName = Process_ORDERS
doctypeName = ORDERS
doctypeRevision = D98A
payload = Acme_orders.xml
In the above enqueue script, the actionName has 2 pieces.
In this case, the message gets delivered to the email address specified in the properties
The value of EmailSubject is “UNB”. In this case, the email subject will contain the UNB segment of the EDIFACT Message. If the "EmailSubject" has the value other than "UNB", then that string itself will be considered as the subject.
Note: The Dynamic email attribute does not require any additional configuration.
IMAP Server Setting:
Install any free IMAP email servers.Create 3 users (e.g : email@example.com, firstname.lastname@example.org, email@example.com )