Package org.activiti.rest.api

Examples of org.activiti.rest.api.DataResponse


    String startableByUser = getQuery().getValues("startableByUser");
    if (StringUtils.isNotEmpty(startableByUser)) {
      query = query.startableByUser(startableByUser);
    }
   
    DataResponse response = new ProcessDefinitionsPaginateList().paginateList(
        getQuery(), query, "id", properties);
    return response;
  }
View Full Code Here


    String processDefinitionId = getQuery().getValues("processDefinitionId");
    String processInstanceKey = getQuery().getValues("businessKey");
    query = processDefinitionId == null ? query : query.processDefinitionId(processDefinitionId);
    query = processInstanceKey == null ? query : query.processInstanceBusinessKey(processInstanceKey);
   
    DataResponse response = new ProcessInstancesPaginateList().paginateList(getQuery(), query, "id", properties);
    return response;
  }
View Full Code Here

      }
    }

    Collections.sort(groupList, new GroupResponseComparable());

    DataResponse response = new DataResponse();
    response.setStart(0);
    response.setSize(groupList.size());
    response.setSort("name");
    response.setOrder("asc");
    response.setTotal(groupList.size());
    response.setData(groupList);

    return response;
  }
View Full Code Here

    }

    TaskQuery taskQuery = ActivitiUtil.getTaskService().createTaskQuery().processInstanceId(processInstanceId);

    // Return also processDefinitionName for each task
    DataResponse dataResponse = new TasksPaginateList().paginateList(getQuery(), taskQuery, "id", properties);
    return dataResponse;
  }
View Full Code Here

    String userId = (String) getRequest().getAttributes().get("userId");
    if (userId == null) {
      throw new ActivitiException("No userId provided");
    }

    DataResponse dataResponse = new UserGroupsPaginateList().paginateList(
        getQuery(), ActivitiUtil.getIdentityService().createGroupQuery()
            .groupMember(userId), "id", properties);
    return dataResponse;
  }
View Full Code Here

    String groupId = (String) getRequest().getAttributes().get("groupId");
    if (groupId == null) {
      throw new ActivitiException("No groupId provided");
    }

    DataResponse dataResponse = new GroupUsersPaginateList().paginateList(
        getQuery(), ActivitiUtil.getIdentityService().createUserQuery()
            .memberOfGroup(groupId), "id", properties);
    return dataResponse;
  }
View Full Code Here

   
    List<UserInfo> userList = new ArrayList<UserInfo>();
    userList.addAll(userMap.values());
    Collections.sort(userList, new UserResponseComparable());
   
    DataResponse response = new DataResponse();
    response.setStart(0);
    response.setSize(userList.size());
    response.setSort("lastName");
    response.setOrder("asc");
    response.setTotal(userList.size());
    response.setData(userList);
   
    return response;
  }
View Full Code Here

 
  @Get
  public DataResponse getDeployments() {
    if(authenticate() == false) return null;
   
    DataResponse response = new DeploymentsPaginateList().paginateList(getQuery(),
        ActivitiUtil.getRepositoryService().createDeploymentQuery(), "id", properties);
    return response;
  }
View Full Code Here

      taskQuery.dueAfter(RequestUtil.parseToDate(strMinDueDate));
    } else if (strMaxDueDate != null) {
      taskQuery.dueBefore(RequestUtil.parseToDate(strMaxDueDate));
    }
   
    DataResponse dataResponse = new TasksPaginateList().paginateList(getQuery(), taskQuery, "id", properties);
    return dataResponse;
  }
View Full Code Here

    }
    if (dueDateHigherThenOrEquals != null) {
      jobQuery.duedateLowerThenOrEquals(dueDateLowerThenOrEquals);
    }
   
    DataResponse response = new JobsPaginateList().paginateList(getQuery(), jobQuery, "id", properties);
    return response;
  }
View Full Code Here

TOP

Related Classes of org.activiti.rest.api.DataResponse

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.