1. Create Event
Use OMF to create a new event definition object. Select Create >Administrative Items - Event Definitions. You may use another event (such as Submit) as an example. The name of your new event should match the argument in the PostEventAndStatus message. The TEXTID field should match the text identifier of the text to display to the user (created in Step 1). The process service and event server should match the Submit event
use OMF to create Event:
Name = "ReportOKEvt"
TEXTID ="bbkout03"
Process Service = "notifserv"
Event Server = "NtfEvq"
Use OMF to create a new event definition object. Select Create >Administrative Items - Event Definitions. You may use another event (such as Submit) as an example. The name of your new event should match the argument in the PostEventAndStatus message. The TEXTID field should match the text identifier of the text to display to the user (created in Step 1). The process service and event server should match the Submit event
use OMF to create Event:
Name = "ReportOKEvt"
TEXTID ="bbkout03"
Process Service = "notifserv"
Event Server = "NtfEvq"
2. Create Notification Rule
Condition Name = "TRUE"
Class Name = "PdmItem"
Inherit = "TRUE"
Participant = "super user"
Event Name = "ReportOKEvt"
3. Create TEXT
/*
*.TEXT bbkout03
*.Subject: Report compeleted and written to file #FILE#.
*/
/*
*.TEXT bbkout03
*.Subject: Report compeleted and written to file #FILE#.
*/
4. Post Event at method use PostEventAndStatus
dstat = nvsSet(&textInserts, "FILE", outfile_name);
dstat = nvsSet(&textInserts, "FILE", outfile_name);
dstat = PostEventStatus(obj, "ReportOKEvt", *mfail, textInserts, mfail);
//check dstat and mfail here
//check dstat and mfail here