@Service @Transactional public class FlowableCommentService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.flowable.common.engine.impl.runtime.Clock |
clock |
protected HistoryService |
historyService |
protected PermissionService |
permissionService |
protected TaskService |
taskService |
| Constructor and Description |
|---|
FlowableCommentService() |
@Autowired protected PermissionService permissionService
@Autowired protected TaskService taskService
@Autowired protected HistoryService historyService
@Autowired protected org.flowable.common.engine.impl.runtime.Clock clock
public ResultListDataRepresentation getTaskComments(String taskId)
public CommentRepresentation addTaskComment(CommentRepresentation commentRequest, String taskId)
public ResultListDataRepresentation getProcessInstanceComments(String processInstanceId)
public CommentRepresentation addProcessInstanceComment(CommentRepresentation commentRequest, String processInstanceId)
public Long countCommentsForProcessInstance(String processInstanceId)
public List<Comment> getCommentsForProcessInstance(String processInstanceId)
public Comment createComment(String message, SecurityScope createdBy, String processInstanceId)
public Comment createComment(String message, SecurityScope createdBy, String taskId, String processInstanceId)
public void deleteComment(Comment comment)
public void deleteAllCommentsForProcessInstance(String processInstanceId)
protected void checkReadPermissionOnTask(SecurityScope user, String taskId)
protected void checkReadPermissionOnProcessInstance(SecurityScope user, String processInstanceId)
Copyright © 2021 Flowable. All rights reserved.