250 likes | 451 Views
Overview: Email Acknowledgement. SMTP Server Configuration Email Acknowledgement Exercises LIC006 – LIC008 Objective: To understand how to set up an email configuration with LANSA Composer. Exercise Preview. About LIC006 – Email Acknowledgement
E N D
Overview: Email Acknowledgement • SMTP Server Configuration • Email Acknowledgement • Exercises LIC006 – LIC008 Objective: To understand how to set up an email configuration with LANSA Composer.
Exercise Preview About LIC006 – Email Acknowledgement • Add Email Acknowledgement to the Processing Sequence
Email Setup • SMTP Server Configuration
Email Acknowledgement • SMTP Mail Details Configuration
Exercise LIC006 • Add Email Acknowledgement to the Processing Sequence
Exercise Preview About LIC007 – Extract Database to CSV File • Create transformation Map from DB to CSV • Add Database file • Add CSV File • Define map • Create processing sequence to define selections criteria and output filename • Run transformation
Transform Map – Insert Database Define table relations 7
Transform Map - Insert Database • Database relations defined PSLMST=>DEPTAB and DEPTAB => PSLMST
Function / Insert Input Output to CSV file if DEPTMENT = input parameter Department_In
Processing Sequence #1 Add Transform Map and define EARTHSourceConnection parm.
Processing Sequence #2 • Use Map variable iiiTUTMAP03_2 to add an input parameter to Processing Sequence – the Department code to be selected • Second parm, define as FILENAME – will be used by CONCAT to create output path\filename • Give them suitable descriptions • Default Value may be specified
Processing Sequence #3 • Add CONCAT activity • Define inbound parameters values • Path • &FILENAME = value of input parameter FILENAME
Processing Sequence #4 • Output from CONCAT = Map variable “output path/filename”
Exercise LIC007 Extract Database to CSV File • Create transformation Map from DB to CSV • Add Database file • Add CSV File • Define map • Create processing sequence to define selections criteria and output filename • Run transformation
Exercise Preview About LIC008 – Processing via Email • Extend LIC007 - Extract Database to CSV File • Retrieve selection criteria from an email • Transform DB to CSV • Send CSV response as an email attachment
Server Folders • \_EmailSkeletonswill contain a text file which is used to produce the body of the reply email. • \_SentEmailwill be used for output and will contain the reply email text and Employee CSV file. • \iiiReceivedEmailwill be used to save the email message received via POP3
Email Response Text • Text file which provides a template for the email reply text • %%PARM.TONAME%% and %%PARM.DEPARTMENT%% replaced with variable value at runtime • Save as iii_EmployeeInfo.txt
Exercise LIC008 Processing via Email • Extend LIC007 - Extract Database to CSV File • Retrieve selection criteria from an email • Transform DB to CSV • Send CSV response as an email attachment