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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpdateCommentCmd(String taskId, String processInstanceId, String commentId, String message) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckTaskWork(TaskEntity task, CommandContext commandContext) protected voidcheckUpdateProcessInstanceById(String processInstanceId, CommandContext commandContext) execute(CommandContext commandContext) protected CommentEntitygetComment(CommandContext commandContext) protected PropertyChangegetPropertyChange(String oldMessage) protected voidupdateProcessInstanceComment(String processInstanceId, CommandContext commandContext, CommentEntity comment) protected TaskEntityupdateTaskComment(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)
-