As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public class AddCommentTransitionListener implements ExecutionListener, Serializable { private static final Logger log = Logger.getLogger(AddCommentTransitionListener.class); private static final long serialVersionUID = 1L; private Expression manualCommentExpression; private Expression manualCommentTypeExpression; private String manualComment = null; private CommentType manualCommentType; public void notify(DelegateExecution execution) throws Exception { processConfiguration(execution); // Add the comment details to the database } private void processConfiguration(DelegateExecution execution) { if (execution != null) { extractManualCommentConfiguration(execution); } } private void extractManualCommentConfiguration(DelegateExecution execution) { if (manualCommentExpression != null) { manualComment = (String) manualCommentExpression.getValue(execution); if (manualCommentTypeExpression != null) { // TODO throw exception if we cannot determine the comment type or if the comment type is not // present manualCommentType = CommentType.lookup(Integer.parseInt((String) manualCommentTypeExpression .getValue(execution))); } else { // TODO throw exception } } } }
manualCommentExpression.getValue(execution)
manualCommentExpression.getExpressionText()
listener.manualCommentExpression = new FixedValue("This is my comment");