zoukankan      html  css  js  c++  java
  • 创建和发送事件

    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
  • 相关阅读:
    Web开发需要掌握的
    使用this关键字,构造函数的相互调用
    FCKEditor.Net在Asp.Net MVC中的配置
    技术收集
    System.Collections命名空间
    C#中的托管堆,托管
    C#中的数据类型
    sql server部分主要代码
    Visual C#常用函数和方法集汇总
    C#委托和事件
  • 原文地址:https://www.cnblogs.com/hcfalan/p/422517.html
Copyright © 2011-2022 走看看