Examples of taskCandidateUser()


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

   
    try {
      TaskQuery tq = engine.getTaskService().createTaskQuery();
     
      tq.taskAssignee(StringUtil.getString(filter.get("userId")));
      tq.taskCandidateUser(StringUtil.getString(filter.get("userId")));
//      tq.processDefinitionKey(StringUtil.getString(filter.get("pdkey")));
     
      String descritpion = StringUtil.getString(filter.get("title"));
      if(StringUtil.isNotEmpty(descritpion))
        tq.taskDescriptionLike(descritpion);
View Full Code Here

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

     
      if(StringUtil.isNotEmpty(StringUtil.getString(filter.get("agentUserId")))){
        tq.isAgent(true);
        if(filter.get("agentType").equals("1")){
          tq.taskAssignee(StringUtil.getString(filter.get("userId")));
          tq.taskCandidateUser(StringUtil.getString(filter.get("userId")));
          tq.agentId(StringUtil.getString(filter.get("agentUserId")));
        }else{
          tq.taskAssignee(StringUtil.getString(filter.get("agentUserId")));
          tq.taskCandidateUser(StringUtil.getString(filter.get("agentUserId")));
          tq.agentId(StringUtil.getString(filter.get("userId")));
View Full Code Here

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

          tq.taskAssignee(StringUtil.getString(filter.get("userId")));
          tq.taskCandidateUser(StringUtil.getString(filter.get("userId")));
          tq.agentId(StringUtil.getString(filter.get("agentUserId")));
        }else{
          tq.taskAssignee(StringUtil.getString(filter.get("agentUserId")));
          tq.taskCandidateUser(StringUtil.getString(filter.get("agentUserId")));
          tq.agentId(StringUtil.getString(filter.get("userId")));
        }
      }else{
        tq.taskAssignee(StringUtil.getString(filter.get("userId")));
        tq.taskCandidateUser(StringUtil.getString(filter.get("userId")));
View Full Code Here

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

          tq.taskCandidateUser(StringUtil.getString(filter.get("agentUserId")));
          tq.agentId(StringUtil.getString(filter.get("userId")));
        }
      }else{
        tq.taskAssignee(StringUtil.getString(filter.get("userId")));
        tq.taskCandidateUser(StringUtil.getString(filter.get("userId")));
      }
     
     
      if (StringUtil.isNotEmpty(leftJoinStr)) {
        queryExpandTo.setLeftJoinSql(leftJoinStr);
View Full Code Here

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

    taskService.saveIdentityLink(identityLink);

    // 查询任务
    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查询候选任务
    taskQuery.taskCandidateUser("testAddExternalTask_admin");
    taskQuery.addTaskType(TaskInstanceType.OTHERBPMTASK);

    TaskInstance taskInstanceReturn = taskQuery.singleResult();

    assertNotNull(taskInstanceReturn);
View Full Code Here

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

        //taskInstance.setAssignee(Authentication.getAuthenticatedUserId());
        commandContext.getTaskManager().saveTaskInstanceEntity(taskInstanceNew);
      }
      else{
        TaskQuery taskQueryNew=taskService.createTaskQuery().processInstanceId(processInstanceId);
        List<TaskInstance> taskQueryCandidateList = taskQueryNew.taskCandidateUser(Authentication.getAuthenticatedUserId()).taskNotEnd().list();
        if(taskQueryCandidateList.size()>0){
          taskInstanceNew=(TaskInstanceEntity)taskQueryCandidateList.get(0);
          taskInstanceNew.setDraft(true);
          if(this.agent!=null&&!this.agent.equals("")){
            taskInstanceNew.setAgent(Authentication.getAuthenticatedUserId());
View Full Code Here

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

     
     
     
      if (taskQueryList.size() <= 0) {
        TaskQuery taskQueryNew=taskService.createTaskQuery().processInstanceId(processInstanceId);
        List<TaskInstance> taskQueryCandidateList = taskQueryNew.taskCandidateUser(initiator).taskNotEnd().list();

        for (TaskInstance instanceQueryTo : taskQueryCandidateList) {

         
         
View Full Code Here

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.expandTaskComplete(expandTaskCommandClaim, 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
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.