this.message = message;
}
public HistoryComment execute(Environment environment) throws Exception {
DbSession dbSession = environment.get(DbSession.class);
HistoryCommentImpl parentComment = dbSession.get(HistoryCommentImpl.class, Long.parseLong(commentId));
if (parentComment==null) {
throw new JbpmException("parent comment doesn't exist: "+commentId);
}
HistoryComment replyComment = parentComment.createReply(message);
return replyComment;
}