public class AddCommentCmd extends Object implements Command<Comment>, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
message |
protected String |
processInstanceId |
protected String |
taskId |
Constructor and Description |
---|
AddCommentCmd(String taskId,
String processInstanceId,
String message) |
Modifier and Type | Method and Description |
---|---|
Comment |
execute(CommandContext commandContext) |
protected ExecutionEntity |
getExecution(CommandContext commandContext) |
protected HistoricProcessInstanceEventEntity |
getHistoricRootProcessInstance(String rootProcessInstanceId) |
protected String |
getHistoryRemovalTimeStrategy() |
protected ExecutionEntity |
getProcessInstance(CommandContext commandContext) |
protected TaskEntity |
getTask(CommandContext commandContext) |
protected boolean |
isHistoryRemovalTimeStrategyStart() |
protected void |
provideRemovalTime(CommentEntity comment) |
protected String taskId
protected String processInstanceId
protected String message
public Comment execute(CommandContext commandContext)
protected ExecutionEntity getExecution(CommandContext commandContext)
protected ExecutionEntity getProcessInstance(CommandContext commandContext)
protected TaskEntity getTask(CommandContext commandContext)
protected boolean isHistoryRemovalTimeStrategyStart()
protected String getHistoryRemovalTimeStrategy()
protected HistoricProcessInstanceEventEntity getHistoricRootProcessInstance(String rootProcessInstanceId)
protected void provideRemovalTime(CommentEntity comment)
Copyright © 2019. All rights reserved.