class Message extends Object
消息:可用于消息提醒、评论、回复等
发送办理消息示例:
ctx.messageService.createMessage("", [subject: "test", content: "test2", processingPolicies: 1], [Employee.findByUsername("xz1")])
| Modifiers | Name | Description |
|---|---|---|
static class |
Message.Status |
| Modifiers | Name | Description |
|---|---|---|
static String |
PROCESS_METHOD_DO |
|
static String |
PROCESS_METHOD_READ |
|
static String |
UUID_CONTENT |
|
static String |
UUID_RANDOM |
|
static String |
UUID_SUBJECT |
| Type | Name and description |
|---|---|
Long |
applicationId所属应用 |
static Object |
belongsTo |
Set<Message> |
children子消息:消息回复时 |
static Object |
constraints |
String |
content内容:长文本 |
Date |
deadline关键日期/截止日期:如提前半个月提醒,则截止日期为半个月后 |
String |
ext1扩展字段 |
String |
ext2扩展字段 |
static Object |
hasMany |
Boolean |
html内容是否是HTML |
String |
linkRef关联内容:可以是 url、json 数据、或有规则的字符串(如 bropen.bpmlite.Document#ID),由业务自定义 |
String |
linkUrl关联 url |
static Map |
listFields |
static Object |
mappedBy |
static Object |
mapping |
Integer |
notifications通知类型 |
Date |
notifiedDate成功发送所有通知的日期 |
Message |
parent父消息:消息回复时 |
Date |
processDate办理时间 |
Integer |
processingPolicies办理策略 |
Set<MessageProcessor> |
processors办理人 |
BigDecimal |
rating评分:可以是对当前消息的评分,也可能是对消息针对的事项的用户评分(MessageProcessor)的平均分,具体根据业务自行实现;分值范围也有业务自定 |
Set<MessageReceiver> |
receivers接收人 |
Message |
resendMessage超期重发的消息:原消息对象 |
Date |
resendTimeout超期重发的触发时间 |
Date |
sendDate消息创建/发送/发布日期 |
Byte |
status办理状态 |
String |
subject主题 |
Integer |
thumbDowns拍砖数量 |
Integer |
thumbUps点赞数量 |
static Object |
transients |
Long |
userId发送人用户ID:允许为空,仅设置 userName |
String |
userName发送人名称:默认是 userId 对应的用户昵称 + 登录名,也可以自定义并且让 userId 为空 |
String |
uuid避免重复提醒的标识、单一主题的标识 |
| Type | Name and description |
|---|---|
DomainApplication |
getApplication() |
List<Map> |
getReceiveUsers()计算所有接收用户 |
String |
toString() |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
所属应用
子消息:消息回复时
内容:长文本
关键日期/截止日期:如提前半个月提醒,则截止日期为半个月后
扩展字段
扩展字段
内容是否是HTML
关联内容:可以是 url、json 数据、或有规则的字符串(如 bropen.bpmlite.Document#ID),由业务自定义
关联 url
通知类型
成功发送所有通知的日期
父消息:消息回复时
办理时间
办理策略
办理人
评分:可以是对当前消息的评分,也可能是对消息针对的事项的用户评分(MessageProcessor)的平均分,具体根据业务自行实现;分值范围也有业务自定
接收人
超期重发的消息:原消息对象
超期重发的触发时间
消息创建/发送/发布日期
办理状态
主题
拍砖数量
点赞数量
发送人用户ID:允许为空,仅设置 userName
发送人名称:默认是 userId 对应的用户昵称 + 登录名,也可以自定义并且让 userId 为空
避免重复提醒的标识、单一主题的标识
计算所有接收用户