Package com.founder.fix.fixflow.core.impl.task

Examples of com.founder.fix.fixflow.core.impl.task.CommentImpl


  }

  public Object execute(CommandContext commandContext) {
    String userId = Authentication.getAuthenticatedUserId();
    CommentImpl comment = new CommentImpl();
    comment.setId(GuidUtil.CreateGuid());
    comment.setUserId(userId);
    comment.setType(CommentImpl.TYPE_COMMENT);
    comment.setTime(ClockUtil.getCurrentTime());
    comment.setTaskId(taskId);
    comment.setProcessInstanceId(processInstanceId);
    // comment.setAction(Event.ACTION_ADD_COMMENT);

    comment.setMessage(message);

    comment.setFullMessage(fullMessage);

    commandContext.getCommentManager().insert(comment);

    return null;
  }
View Full Code Here


    objectParamWhere.add(parameter.toString());

    List<CommentImpl> commentImplList = new ArrayList<CommentImpl>();

    for (Map<String, Object> dataMap : dataObj) {
      CommentImpl commentImpl = new CommentImpl();
      for (String dataKey : dataMap.keySet()) {

        if (dataKey.equals("ID")) {
          commentImpl.setId(StringUtil.getString(dataMap.get(dataKey)));
        }

        if (dataKey.equals("TYPE")) {
          commentImpl.setType(StringUtil.getString(dataMap.get(dataKey)));
        }

        if (dataKey.equals("TIME")) {
          commentImpl.setTime(StringUtil.getDate(dataMap.get(dataKey)));
        }

        if (dataKey.equals("USER_ID")) {
          commentImpl.setUserId(StringUtil.getString(dataMap.get(dataKey)));
        }

        if (dataKey.equals("TASKINSTANCE_ID")) {
          commentImpl.setTaskId(StringUtil.getString(dataMap.get(dataKey)));
        }

        if (dataKey.equals("PROCESSINSTANCE_ID")) {
          commentImpl.setProcessInstanceId(StringUtil.getString(dataMap.get(dataKey)));
        }

        if (dataKey.equals("ACTION")) {
          commentImpl.setAction(StringUtil.getString(dataMap.get(dataKey)));
        }

        if (dataKey.equals("MESSAGE")) {
          commentImpl.setMessage(StringUtil.getString(dataMap.get(dataKey)));
        }

        if (dataKey.equals("FULL_MSG")) {
          commentImpl.setFullMessage(StringUtil.getString(dataMap.get(dataKey)));
        }

      }
      commentImplList.add(commentImpl);
    }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.task.CommentImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.