Appearance
getProcessInstanceComments
Flowable 7.1.0 摘要:与给定过程实例有关的评论。
方法签名与说明
List < Comment > getProcessInstanceComments ( String processInstanceId)
与给定过程实例有关的评论。
List < Comment > getProcessInstanceComments ( String processInstanceId, String type)
与给定过程实例有关的评论。
常见使用场景
- 记录审批意见、沟通记录,辅助审计。
- 在工单详情页展示历史批注。
- 官方摘要:与给定过程实例有关的评论。
Kotlin 调用示例
kotlin
val processInstanceId = "PROCESSINSTANCEID"
taskService.getProcessInstanceComments(processInstanceId)注意事项
- 批注通常用于审计,建议保留原始文本。
- 删除批注前确认业务是否允许。
- 调用前请确认当前用户具备相应的任务/流程操作权限。
- 本文基于 Flowable 7.1.0 Javadoc。
相关 API
- getProcessInstanceComments
- addComment
- getTaskComments
- deleteComment