Package org.camunda.bpm.engine.impl.cmd
Class UpdateCommentCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.UpdateCommentCmd
- All Implemented Interfaces:
Serializable
,Command<Object>
Command to update a comment by a given task ID or a process Instance ID
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUpdateCommentCmd
(String taskId, String processInstanceId, String commentId, String message) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkTaskWork
(TaskEntity task, CommandContext commandContext) protected void
checkUpdateProcessInstanceById
(String processInstanceId, CommandContext commandContext) execute
(CommandContext commandContext) protected CommentEntity
getComment
(CommandContext commandContext) protected PropertyChange
getPropertyChange
(String oldMessage) protected void
updateProcessInstanceComment
(String processInstanceId, CommandContext commandContext, CommentEntity comment) protected TaskEntity
updateTaskComment
(String taskId, CommandContext commandContext, CommentEntity comment)
-
Field Details
-
taskId
-
commentId
-
processInstanceId
-
message
-
-
Constructor Details
-
UpdateCommentCmd
-
-
Method Details
-
execute
-
updateTaskComment
protected TaskEntity updateTaskComment(String taskId, CommandContext commandContext, CommentEntity comment) -
updateProcessInstanceComment
protected void updateProcessInstanceComment(String processInstanceId, CommandContext commandContext, CommentEntity comment) -
getComment
-
getPropertyChange
-
checkTaskWork
-
checkUpdateProcessInstanceById
protected void checkUpdateProcessInstanceById(String processInstanceId, CommandContext commandContext)
-