this.commentId = commentId;
}
public Object execute(Environment environment) throws Exception {
DbSession dbSession = environment.get(DbSession.class);
HistoryDetailImpl comment = (HistoryDetailImpl) dbSession.get(HistoryDetailImpl.class, Long.parseLong(commentId));
if (comment!=null) {
dbSession.delete(comment);
} else {
throw new JbpmException("comment "+commentId+" doesn't exist");