Examples of taskCandidateUser()


Examples of com.founder.fix.fixflow.core.task.TaskQuery.taskCandidateUser()

    // 查找 1200119390 的这个流程实例的当前独占任务
    List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
    //未领任务前 独占任务应该为0
    assertEquals(taskInstances.size(), 0);
    //获取1200119390的本流程实例的共享任务
    taskInstances = taskQuery.taskCandidateUser("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
    //验证此时的共享任务为1
    assertEquals(taskInstances.size(), 1);
   
    //获取当前任务节点
    TaskInstance taskInstance = taskInstances.get(0);
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.taskCandidateUser()

    taskService.claim(taskInstance.getId(), null);
   
    //重置任务查询 查询共享
    taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前共享任务
    taskInstances = taskQuery.taskCandidateUser("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
    //领取任务后,共享任务数为0
    assertEquals(taskInstances.size(), 0);
    //重置任务查询 查询独占
    taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前独占任务
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.taskCandidateUser()

    //释放任务后,独占任务数为0
    assertEquals(taskInstances.size(), 0);
    //重置任务查询 查询共享
    taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前共享任务
    taskInstances = taskQuery.taskCandidateUser("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
    //释放任务后,共享任务数为1
    assertEquals(taskInstances.size(), 1);
    //取得当前任务
    taskInstance = taskInstances.get(0);
    //取得任务所在节点
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.taskCandidateUser()

    //验证独占任务为20
    assertEquals(20, taskInstances.size());
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //取得此流程,此用户的共享任务
    List<TaskInstance> taskInstancesCandidate = taskQuery.taskCandidateUser("1200119390").processDefinitionKey("Process_TaskServiceTest").taskNotEnd().list();
    //验证共享任务为30
    assertEquals(30, taskInstancesCandidate.size());
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询 1200119390 的这个流程定义的共享和独占任务(此流程的待办事项)
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.taskCandidateUser()

    //验证共享任务为30
    assertEquals(30, taskInstancesCandidate.size());
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询 1200119390 的这个流程定义的共享和独占任务(此流程的待办事项)
    List<TaskInstance> taskAssigneeAndCandidate =  taskQuery.taskCandidateUser("1200119390").taskAssignee("1200119390").processDefinitionKey("Process_TaskServiceTest").taskNotEnd().list();
    //验证共享和独占任务的总和为50
    assertEquals(50, taskAssigneeAndCandidate.size());
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询1200119390 的这个流程定义的已办任务
View Full Code Here

Examples of org.activiti.engine.task.TaskQuery.taskCandidateUser()

      if (state != null) {
        taskQuery.taskDelegationState(state);
      }
    }
    if (request.getCandidateUser() != null) {
      taskQuery.taskCandidateUser(request.getCandidateUser());
    }
    if (request.getInvolvedUser() != null) {
      taskQuery.taskInvolvedUser(request.getInvolvedUser());
    }
    if (request.getCandidateGroup() != null) {
View Full Code Here

Examples of org.activiti.engine.task.TaskQuery.taskCandidateUser()

    } else if (ownerTaskUserId != null) {
      taskQuery.taskOwner(ownerTaskUserId);
    } else if (involvedTaskUserId != null) {
      taskQuery.taskInvolvedUser(involvedTaskUserId);
    } else if (candidateTaskUserId != null) {
      taskQuery.taskCandidateUser(candidateTaskUserId);
    } else if (candidateGroupId != null) {
      taskQuery.taskCandidateGroup(candidateGroupId);
    } else {
      throw new ActivitiException("Tasks must be filtered with 'assignee', 'owner', 'involved', 'candidate' or 'candidate-group'");
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.taskCandidateUser()

    assertEquals(testString, query.getExpressions().get("followUpBefore"));
  }

  public void testTaskQueryCandidateUser() {
    TaskQueryImpl query = new TaskQueryImpl();
    query.taskCandidateUser(testUser.getId());
    query.taskCandidateUserExpression(testUser.getId());

    filter.setQuery(query);
    query = filter.getQuery();
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.taskCandidateUser()

    }
    if (json.has(DELEGATION_STATE)) {
      query.taskDelegationState(DelegationState.valueOf(json.getString(DELEGATION_STATE)));
    }
    if (json.has(CANDIDATE_USER)) {
      query.taskCandidateUser(json.getString(CANDIDATE_USER));
    }
    if (json.has(CANDIDATE_GROUP)) {
      query.taskCandidateGroup(json.getString(CANDIDATE_GROUP));
    }
    if (json.has(CANDIDATE_GROUPS) && !json.has(CANDIDATE_USER) && !json.has(CANDIDATE_GROUP)) {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.taskCandidateUser()

  }

  @Test
  public void testGetFilterWithCandidateUserQuery() {
    TaskQueryImpl query = new TaskQueryImpl();
    query.taskCandidateUser("abc");
    Filter filter = new FilterEntity("Task").setName("test").setQuery(query);
    when(filterServiceMock.getFilter(EXAMPLE_FILTER_ID)).thenReturn(filter);

    given()
      .pathParam("id", EXAMPLE_FILTER_ID)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.