public void addComment(String message) { addComment(new Comment(message)); }
public void addComment(String message) { addComment(new Comment(message)); }
public void addComment(Comment comment) { if (comment != null) { if (comments == null) comments = new ArrayList(); comments.add(comment); comment.setTaskInstance(this); if (token != null) { comment.setToken(token); token.addComment(comment); } } }
public void addComment(Comment comment) { if (comment != null) { if (comments == null) comments = new ArrayList(); comments.add(comment); comment.setTaskInstance(this); if (token != null) { comment.setToken(token); token.addComment(comment); } } }
final Object targetValue = target.getValue(elContext); if (targetValue instanceof Token) { ((Token) targetValue).addComment(commentText); } else if (targetValue instanceof TaskInstance) { ((TaskInstance) targetValue).addComment(commentText);