Difference between revisions of "Information Systems:OMS - Outbound Message System"

From uniWIKI
Jump to navigation Jump to search
m (Restructured for clarity and added more info regarding OMS)
Line 1: Line 1:
  +
==Overview==
Job OMSPOSTPRD, which is program OMSNEP01CL (OMS-Process Outbound Email Msgs), runs all day in subsystem OMSSUBPRD.
 
  +
OMS is a UNITY extension that allows for outbound emails to be sent from the extensions programs. Its known major usages are:
   
  +
* Email order confirmations for POS orders
RPG program OMSNEP01 (OMS-Process The Outbound Email Msgs for OMS System)
 
  +
* Remittance advices
  +
* An email version of the catalogue, where the catalogue is written to the email body (quite horrible).
   
  +
==Design==
- Calls the Domino agent to run OMSMAIL.NSF
 
  +
The main tables are:
   
Program OMSCRTFL (OMS-Create The IFS File For Domino Process)
+
* OMSQUEP (OMS-Outbound Message Queue File)
 
* OMSMHDP (OMS-Outbound Message Header File)
 
* OMSLINP (OMS-Outbound Message Lines File)
 
* OMSOUTP (OMS-Outbound Message Holding File)
   
  +
Program flow:
File OMSQUEP (OMS-Outbound Message Queue File)
 
   
 
* Job OMSPOSTPRD runs '''OMSNEP01CL''' (OMS-Process Outbound Email Msgs), a CL program. This runs all day in subsystem OMSSUBPRD.
File OMSMHDP (OMS-Outbound Message Header File)
 
 
* OMSNEP01CL calls RPG program '''OMSNEP01''' (OMS-Process The Outbound Email Msgs for OMS System). This takes lines from OMSLINP and writes them
  +
* OMSNEP01 calls OMSCRTFL (OMS-Create The IFS File For Domino Process) to create an IFS file for the database record (file member). This file goes into /omsfiles.
  +
* OMSNEP01CL issues the Domino command <code>TELL AMGR RUN "OMSMAIL.NSF" 'OMS3-4'</code>. ''Apparently this also runs every 7 minutes between Domino startup and shutdown? -[[User:Norwinu|norwizzle]] ([[User talk:Norwinu|talk]])''
   
  +
===OMSMAIL Domino agent===
File OMSLINP (OMS-Outbound Message Lines File)
 
  +
The CL/RPG side of OMS produces a text file in /omsfiles. A Domino agent (written in LotusScript) is what actually parses the contents of this file. It then builds and sends the email, deletes the IFS file, and SQL-updates the OMS tables. The script is located in <code>/domino/maggie/data/</code>. It can be viewed/edited in HCL Designer.
 
File OMSOUTP (OMS-Outbound Message Holding File)
 
   
 
[[Category: Extensions]]
 
[[Category: Extensions]]

Revision as of 16:01, 7 June 2021

Overview

OMS is a UNITY extension that allows for outbound emails to be sent from the extensions programs. Its known major usages are:

  • Email order confirmations for POS orders
  • Remittance advices
  • An email version of the catalogue, where the catalogue is written to the email body (quite horrible).

Design

The main tables are:

  • OMSQUEP (OMS-Outbound Message Queue File)
  • OMSMHDP (OMS-Outbound Message Header File)
  • OMSLINP (OMS-Outbound Message Lines File)
  • OMSOUTP (OMS-Outbound Message Holding File)

Program flow:

  • Job OMSPOSTPRD runs OMSNEP01CL (OMS-Process Outbound Email Msgs), a CL program. This runs all day in subsystem OMSSUBPRD.
  • OMSNEP01CL calls RPG program OMSNEP01 (OMS-Process The Outbound Email Msgs for OMS System). This takes lines from OMSLINP and writes them
  • OMSNEP01 calls OMSCRTFL (OMS-Create The IFS File For Domino Process) to create an IFS file for the database record (file member). This file goes into /omsfiles.
  • OMSNEP01CL issues the Domino command TELL AMGR RUN "OMSMAIL.NSF" 'OMS3-4'. Apparently this also runs every 7 minutes between Domino startup and shutdown? -norwizzle (talk)

OMSMAIL Domino agent

The CL/RPG side of OMS produces a text file in /omsfiles. A Domino agent (written in LotusScript) is what actually parses the contents of this file. It then builds and sends the email, deletes the IFS file, and SQL-updates the OMS tables. The script is located in /domino/maggie/data/. It can be viewed/edited in HCL Designer.