导航

创建和发送事件

Posted on 2006-06-10 15:31  hcfalan  阅读(364)  评论(0编辑  收藏  举报
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"

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#.
        */
 
4. Post Event at method use PostEventAndStatus
    dstat = nvsSet(&textInserts, "FILE", outfile_name);
    dstat = PostEventStatus(obj, "ReportOKEvt", *mfail, textInserts, mfail);
    //check dstat and mfail here