Using SOA to Enhance Email Notifications Rajas Kirtane 8/11/2014
Agenda Introduction Business Challenge Solution Overview Key Learning's Q & A In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 2
Introduction Replace with Picture Supply Chain Technologies and Retail Enterprise Architect SCM Solutions 14+ years of experience in IT consulting focusing mainly on OTM and other SCM solutions Enterprise architect for modelling TMS solutions for global clientele with expertise in SCM Integrations Highly experienced in working with IT systems of global leader in logistics and SCM In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 3
Agenda Introduction Business Challenge Solution Overview Key Learning's Q & A In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 4
The Client Requirements Required a Solution Beyond the Standard OTM Functionality Business Challenges Solution Approach Targeted Benefits Need to send out multiple custom build notification emails out of OTM and other Legacy applications Use of Service Oriented Architecture and Oracle Fusion middleware technologies to handle both OTM and Legacy requirements Enterprise standards for consistency in notification look and feel Reusable code that could be deployed as SaaS solution The notifications email s content required a mix of static and dynamic HTML content along with simple branding Email attachments functionality was required for some notification emails Limited resources Use of domain value maps (DMV) and business rules to achieve dynamism. Use of XHTML templates to derive HTML Fusion technologies out of box email component was extended to achieve attachments on emails Hosted on existing Infrastructure. NO additional cost and pain to manage another set of servers or technologies Dynamic control of notification based on business requirements Freedom to design and define our own notification format and keep it consistent with enterprise wide standards Business was able send file attachment on email notification from the existing solution without redesigning business process Solution can be developed and maintained with limited resources In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 5
Agenda Introduction Business Challenge Solution Overview Key Learning's Q & A In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 6
Using SOA Dynamic Email Messages are Generated To handle the various business requirements across the organization and the dynamic type of messaging we used SOA to meet the needs of the business: Sends custom SCM notifications emails for SCM event Use of service oriented architecture in design to reduce costs and increase speed of deployment of multiple requirements Eliminates use of specific reporting tool like BI- Publisher Developed and hosted using Oracle Fusion technologies Notification email contents are HTML based to provide more possibilities Hyperlinks, Rich text, branding and virtually anything that is possible in HTML is possible on the notifications. Service Oriented Architecture provided additional flexibility and implementation speed while improving the ability for the organization to support the solution In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 7
The Solution High Level Design Consists of 5 Main Components OTM OTM ABCS (SOA) Legacy Legacy ABCS Notification Service Content Generator Service Business Rules ERP ERP ABCS In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 8
Business Rules Content Generator Notification Service OTM ABCS (SOA) OTM The Process Supports Unique Notifications For Each Outbound OTM Message 1 OTM Generates Outbound XML Transmission 2 Receives OTM XML and Calls Notification Service 3 Calls Content Generator Service 7 Send Out Emails 4 Calls Business Rules Engine to Get Notification Configuration 5 Maintain Business Rules Configuration for Each Type of Notification 6 Generates <HTML> String for Notification Based on Configuration In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 9
OTM Generates Outbound XML Transmission 1 SCM Even occurs in OTM OTM Agent is Triggered OTM Transmission XML is generated for the Shipment Object OTM Agent is fired OTM agent performs agent actions for the event Prepares XML with all relevant data for generating notification for hand off Call OTM ABCS Make web service call or Enqueue Transmission XML for OTM ABCS In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 10
OTM ABCS Receives OTM XML & Calls Notification Service 2 Receive transmission xml from OTM Identify notification type to be generated Provide email meta data Call notification service Dequeue/receive transmission xml from OTM Handoff transmission XML to down stream components Determine which notification is to be generated using Xpath Create HTML text strings for the notification contents Provide email recipient information like, To, Cc Assign subject text to email Provide file attachment details Transform OTM transmission into notification request message Call notification web service Get the receipt acknowledgement In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 11
The Notification Service is Called to Send Notifications 3 Validate input XML Call Content Generator Service 7 Prepare email Send email Validate input XML against schema Send receipt acknowledgement to consumer Transform input message to request message of content service Call Content Generator Service Receive <HTML> string for email body from content service Prepare, To, Cc, Bcc list Determine if Email attachments are requested Transmit email using standard SOA components Attach the supplied file or fetch it from network. In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 12
Content Generator Service Generates Notification Contents 4 6 Call Business Rules Get XHTML template Transform XHTML Return HTML Call business rules for specific notification Type Get notification display configuration Get Template file Name (.xhtml) configured from Notification rules Read the specific template file for notification type Get notification display configuration for the notification from business rule Replace input HTML contents with XHTML template as per Business rule Return this <HTML> String to the Notification service Generate <HTML>stream (Email Body) In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 13
Maintain Business Rules to Handle Various Business Requirements 5 Define Configure Enable Define Business rule Decision table design Configure decision table for each notification type Enable Business rules to be called as Web service from external applications. In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 14
Agenda Introduction Business Challenge Solution Overview Key Learning's Q & A In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 15
Key Learning's Critical Success Factor Intense design session with all stake holders Hints and Watch Outs Involve all stake holders during early design phase to gather a complete understanding of the requirements Be sure to explain and get buy in for what and how we are trying to achieve the end result Develop a flexible approach to design & strong fusion skills Extend middleware/integration technologies to send notifications Strong knowledge of Fusion middleware offerings and capabilities Intense Testing Test as many email clients as possible, for e.g. Outlook, Gmail, Gmail on Mobile.. Etc.. Run as many business scenarios as possible to generate notifications and test the business rules The Business Team and Technology Team Need to Work as One Team From the Start to the Finish to Ensure Success on the Project In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 16
Agenda Introduction Business Challenge Solution Overview Key Learning's Q & A In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 17
Questions / Comments? In collaboration with The information contained in this document is proprietary. Copyright 2012 Capgemini. All rights reserved. 18
About Capgemini With around 120,000 people in 40 countries, Capgemini is one of the world's foremost providers of consulting, technology and outsourcing services. The Group reported 2011 global revenues of EUR 9.7 billion (approximately $13.5 billion USD). Together with its clients, Capgemini creates and delivers business and technology solutions that fit their needs and drive the results they want. A deeply multicultural organization, Capgemini has developed its own way of working, the Collaborative Business Experience TM, and draws on Rightshore, its worldwide delivery model. Rightshore is a trademark belonging to Capgemini www.capgemini.com The information contained in this presentation is proprietary. 2012 Capgemini. All rights reserved.