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

Examples of com.founder.fix.fixflow.core.impl.identity.UserTo


   
    for (Map<String, Object> map : listmMaps) {
      String userIdDataString=StringUtil.getString(map.get("EID"));
     
      if(userIdDataString!=null&&!userIdDataString.equals("")){
        UserTo userTo=userDefinition.findUserByUserId(userIdDataString);
        if(userTo!=null){
          Map<String, Object> mapDataMap=new HashMap<String, Object>();
          mapDataMap.put("userid", userTo.getUserId());
          mapDataMap.put("username", userTo.getUserName());
          mapDataMap.put("count", 0);
          returnListMaps.add(mapDataMap);
        }
      }
    }
View Full Code Here


        ProcessDefinitionBehavior processDefinitionBehavior = engine.getModelService().getProcessDefinition(processDefinitionId);
        String processDefinitionName = processDefinitionBehavior.getName();
        persistentState.put("processDefinitionName", processDefinitionName);
        String nowNodeInfo = flowUtil.getShareTaskNowNodeInfo(tmp.getId());
        persistentState.put("nowNodeInfo", nowNodeInfo);
        UserTo user = identityService.getUserTo(tmp.getStartAuthor());
        if(user !=null){
          persistentState.put("startAuthorName", user.getUserName());
        }else{
          persistentState.put("startAuthorName", tmp.getStartAuthor());
        }
        instanceMaps.add(persistentState);
      }
View Full Code Here

    List<Map<String, Object>> listmMaps=commandContext.getTaskManager().findAgentToUsers(userId);
    UserDefinition userDefinition=commandContext.getProcessEngineConfigurationImpl().getUserDefinition();
    for (Map<String, Object> map : listmMaps) {
      String userIdDataString=StringUtil.getString(map.get("EID"));
      if(userIdDataString!=null&&!userIdDataString.equals("")){
        UserTo userTo=userDefinition.findUserByUserId(userIdDataString);
        if(userTo !=null){
          Map<String, Object> mapDataMap=new HashMap<String, Object>();
          mapDataMap.put("userid", userTo.getUserId());
          mapDataMap.put("username", userTo.getUserName());
          mapDataMap.put("count", 0);
          returnListMaps.add(mapDataMap);
        }
      }
    }
View Full Code Here

        // 这里可能会出现重复记录人名的问题
        List<Map<String, Object>> dataObj = sqlCommand.queryForList("select USERTABLE.* FROM (" + sqlText + ") USERTABLE WHERE USERTABLE."
            + groupIdField + " in (" + sqlInString + ")", objectParamWhere);
        List<UserTo> userTos = new ArrayList<UserTo>();
        for (Map<String, Object> map : dataObj) {
          UserTo userTo = new UserTo(StringUtil.getString(map.get(userIdField)), StringUtil.getString(map.get(userNameField)), map);
          userTos.add(userTo);
        }
        cache.putCacheData(getId() + "_findUserChildMembersIncludeByGroupId_" + groupId, userTos);
        return userTos;
      } catch (Exception e) {
View Full Code Here

        String sqlText = userInfo.getSqlText();
        List<Map<String, Object>> dataObj = sqlCommand.queryForList("SELECT USERTABLE.* FROM (" + sqlText + ") USERTABLE where USERTABLE."
            + groupIdField + "=?", objectParamWhere);
        List<UserTo> userTos = new ArrayList<UserTo>();
        for (Map<String, Object> map : dataObj) {
          UserTo userTo = new UserTo(StringUtil.getString(map.get(userIdField)), StringUtil.getString(map.get(userNameField)), map);
          userTos.add(userTo);
        }
        cache.putCacheData(getId() + "_findUserByGroupId_" + groupId, userTos);
        return userTos;
      } catch (Exception e) {
View Full Code Here

  * @param executionContext 流程上下文
  * @return
  */
  public List<UserTo> UserExecute(ExecutionContext executionContext){
    List<UserTo> userTos = new ArrayList<UserTo>();
    UserTo userTo = new UserTo("fixflow_allusers");
    userTos.add(userTo);
    return userTos;
  }
View Full Code Here

  * @return
  */
  public List<UserTo> UserExecute(ExecutionContext executionContext){
    List<UserTo> userTos = new ArrayList<UserTo>();
    String userId=Authentication.getAuthenticatedUserId();
    UserTo userTo = new UserTo(userId);
    userTos.add(userTo);
    return userTos;
  }
View Full Code Here

    List<UserTo> userTos = new ArrayList<UserTo>();
    List<String> userList=AssigneeUtil.executionExpressionObj(userId, executionContext);
   
   
    for (String userId : userList) {
      UserTo userTo = new UserTo(userId);
      userTos.add(userTo);
    }

    return userTos;
  }
View Full Code Here

  * @return
  */
  public List<UserTo> UserExecute(ExecutionContext executionContext) {
    List<UserTo> userTos = new ArrayList<UserTo>();
    String userId=Authentication.getAuthenticatedUserId();
    UserTo userTo = new UserTo(userId);
    userTos.add(userTo);
    return userTos;
  }
View Full Code Here

      List<GroupDefinition> groupDefinitions = Context.getProcessEngineConfiguration().getGroupDefinitions();

      if (taskInstance.getAssignee() != null) {
        String to = taskInstance.getAssignee();
        if (!to.equals("")) {
          UserTo userTo = userDefinition.findUserByUserId(to);
          if (userTo != null) {
            String eamil = StringUtil.getString(userTo.getPropertyValue("EMAIL"));
            if (eamil != null && !eamil.equals("")) {
              sendMail(eamil, mailTitle, mailContent,taskInstance);
            }
          }
        }

      } else {

        String to = "";

        for (IdentityLink identityLink : taskInstance.getTaskIdentityLinks()) {

          if (identityLink.getUserId() != null) {
            UserTo userTo = Authentication.findUserInfoByUserId(identityLink.getUserId());
            if (userTo != null) {
              String eamil = StringUtil.getString(userTo.getPropertyValue("EMAIL"));
              if (eamil != null && !eamil.equals("")) {
                // sendMail(eamil,title,mailContent);
                to = to + eamil + ",";
              }
            }
          } else {
            String groupIdString = identityLink.getGroupId();
            String groupTypeString = identityLink.getGroupType();
            GroupTo groupTo = Authentication.findGroupByGroupIdAndType(groupIdString, groupTypeString);
            if (groupTo != null) {

              for (GroupDefinition groupDefinition : groupDefinitions) {
                if (groupDefinition.getId().equals(groupTypeString)) {
                  List<UserTo> userTos = groupDefinition.findUserByGroupId(groupIdString);
                  for (UserTo userTo : userTos) {
                    if (userTo != null) {
                      String eamil = StringUtil.getString(userTo.getPropertyValue("EMAIL"));
                      if (eamil != null && !eamil.equals("")) {
                        // sendMail(eamil,title,mailContent);
                        to = to + eamil + ",";
                      }
                    }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.identity.UserTo

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.