Search in sources :

Example 1 with MessageRecord

use of cn.cerc.jmis.message.MessageRecord in project summer-mis by cn-cerc.

the class AsyncService method send.

private void send() {
    if (handle == null)
        throw new RuntimeException("handle is null");
    String subject = this.getSubject();
    if (subject == null || "".equals(subject))
        throw new RuntimeException("subject is null");
    MessageRecord msg = new MessageRecord();
    msg.setCorpNo(this.getCorpNo());
    msg.setUserCode(this.getUserCode());
    msg.setLevel(this.messageLevel);
    msg.setContent(this.toString());
    msg.setSubject(subject);
    msg.setProcess(this.process);
    log.debug(this.getCorpNo() + ":" + this.getUserCode() + ":" + this);
    this.msgId = msg.send(handle);
}
Also used : MessageRecord(cn.cerc.jmis.message.MessageRecord)

Aggregations

MessageRecord (cn.cerc.jmis.message.MessageRecord)1