Class FlowableCommentService
- java.lang.Object
-
- org.flowable.ui.task.service.runtime.FlowableCommentService
-
@Service @Transactional public class FlowableCommentService extends Object
- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.common.engine.impl.runtime.Clockclockprotected HistoryServicehistoryServiceprotected PermissionServicepermissionServiceprotected TaskServicetaskService
-
Constructor Summary
Constructors Constructor Description FlowableCommentService()
-
Method Summary
-
-
-
Field Detail
-
permissionService
@Autowired protected PermissionService permissionService
-
taskService
@Autowired protected TaskService taskService
-
historyService
@Autowired protected HistoryService historyService
-
clock
@Autowired protected org.flowable.common.engine.impl.runtime.Clock clock
-
-
Method Detail
-
getTaskComments
public ResultListDataRepresentation getTaskComments(String taskId)
-
addTaskComment
public CommentRepresentation addTaskComment(CommentRepresentation commentRequest, String taskId)
-
getProcessInstanceComments
public ResultListDataRepresentation getProcessInstanceComments(String processInstanceId)
-
addProcessInstanceComment
public CommentRepresentation addProcessInstanceComment(CommentRepresentation commentRequest, String processInstanceId)
-
countCommentsForProcessInstance
public Long countCommentsForProcessInstance(String processInstanceId)
-
getCommentsForProcessInstance
public List<Comment> getCommentsForProcessInstance(String processInstanceId)
-
createComment
public Comment createComment(String message, SecurityScope createdBy, String processInstanceId)
-
createComment
public Comment createComment(String message, SecurityScope createdBy, String taskId, String processInstanceId)
-
deleteComment
public void deleteComment(Comment comment)
-
deleteAllCommentsForProcessInstance
public void deleteAllCommentsForProcessInstance(String processInstanceId)
Deletes all comments related to the given process instance. Includes both comments on the process instance itself and any comments on the tasks in that process.
-
checkReadPermissionOnTask
protected void checkReadPermissionOnTask(SecurityScope user, String taskId)
-
checkReadPermissionOnProcessInstance
protected void checkReadPermissionOnProcessInstance(SecurityScope user, String processInstanceId)
-
-