Examples of createTaskQuery()


Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

  }


  public void resumeTask(String taskId) {
    TaskService taskService=getProcessEngine().getTaskService();
    TaskInstance taskInstance=taskService.createTaskQuery().taskId(taskId).singleResult();
    taskInstance.resume();
    taskService.saveTask(taskInstance);
  }

  public void suspendTask(String taskId) {
View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

    taskService.saveTask(taskInstance);
  }

  public void suspendTask(String taskId) {
    TaskService taskService=getProcessEngine().getTaskService();
    TaskInstance taskInstance=taskService.createTaskQuery().taskId(taskId).singleResult();
    taskInstance.suspend();
    taskService.saveTask(taskInstance);
  }

View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

  }
 
  public List<Map<String, Object>> execute(CommandContext commandContext) {
    TaskService taskService = ProcessEngineManagement.getDefaultProcessEngine().getTaskService();
    String userId=Authentication.getAuthenticatedUserId();
    List<TaskInstance> taskInstances=taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(userId).taskIsEnd().list();
    List<Map<String, Object>> listMap=new ArrayList<Map<String,Object>>();
    List<TaskInstance> taskInstancesNotEndA=taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(userId).taskNotEnd().list();
    List<TaskInstance> taskInstancesNotEndC=taskService.createTaskQuery().processInstanceId(processInstanceId).taskCandidateUser(userId).taskNotEnd().list();
    Map<String, String> notEndTask=new HashMap<String, String>();
    //独占未完成
View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

  public List<Map<String, Object>> execute(CommandContext commandContext) {
    TaskService taskService = ProcessEngineManagement.getDefaultProcessEngine().getTaskService();
    String userId=Authentication.getAuthenticatedUserId();
    List<TaskInstance> taskInstances=taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(userId).taskIsEnd().list();
    List<Map<String, Object>> listMap=new ArrayList<Map<String,Object>>();
    List<TaskInstance> taskInstancesNotEndA=taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(userId).taskNotEnd().list();
    List<TaskInstance> taskInstancesNotEndC=taskService.createTaskQuery().processInstanceId(processInstanceId).taskCandidateUser(userId).taskNotEnd().list();
    Map<String, String> notEndTask=new HashMap<String, String>();
    //独占未完成
    for (TaskInstance taskInstance : taskInstancesNotEndA) {
      List<TaskCommandInst> taskCommandInsts=taskService.GetTaskCommandByTaskInstance(taskInstance,true);
View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

    TaskService taskService = ProcessEngineManagement.getDefaultProcessEngine().getTaskService();
    String userId=Authentication.getAuthenticatedUserId();
    List<TaskInstance> taskInstances=taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(userId).taskIsEnd().list();
    List<Map<String, Object>> listMap=new ArrayList<Map<String,Object>>();
    List<TaskInstance> taskInstancesNotEndA=taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(userId).taskNotEnd().list();
    List<TaskInstance> taskInstancesNotEndC=taskService.createTaskQuery().processInstanceId(processInstanceId).taskCandidateUser(userId).taskNotEnd().list();
    Map<String, String> notEndTask=new HashMap<String, String>();
    //独占未完成
    for (TaskInstance taskInstance : taskInstancesNotEndA) {
      List<TaskCommandInst> taskCommandInsts=taskService.GetTaskCommandByTaskInstance(taskInstance,true);
      for (TaskCommandInst taskCommandInst : taskCommandInsts) {
View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

    ProcessEngine processEngine = ProcessEngineManagement.getDefaultProcessEngine();

    TaskService taskService = processEngine.getTaskService();

    TaskQuery taskQuery = taskService.createTaskQuery();

    TaskInstance taskInstance=taskQuery.taskId(taskId).singleResult();
   
        
View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

      // 任务第一步提交完还需找到一个待办事宜再执行掉才算真正完成
      String processInstanceId = processInstanceQueryTo.getId();

      TaskService taskService = processEngine.getTaskService();
      TaskQuery taskQuery = taskService.createTaskQuery()
          .processInstanceId(processInstanceId);

      //先去找独占任务没有的话就去找共享任务并完成他
      List<TaskInstance> taskQueryList = taskQuery.taskAssignee(Authentication.getAuthenticatedUserId()).taskNotEnd()
          .list();
View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

        }
        //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("")){
View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

    }

    List<TaskInstance> endTaskInstances = null;
    if (userId == null) {
      endTaskInstances = taskService.createTaskQuery().processInstanceId(taskInstanceTemp.getProcessInstanceId()).taskIsEnd().nodeId(recoverNodeId)
          .list();

    } else {
      endTaskInstances = taskService.createTaskQuery().processInstanceId(taskInstanceTemp.getProcessInstanceId()).taskAssignee(userId).taskIsEnd()
          .nodeId(recoverNodeId).list();
View Full Code Here

Examples of com.founder.fix.fixflow.core.TaskService.createTaskQuery()

    if (userId == null) {
      endTaskInstances = taskService.createTaskQuery().processInstanceId(taskInstanceTemp.getProcessInstanceId()).taskIsEnd().nodeId(recoverNodeId)
          .list();

    } else {
      endTaskInstances = taskService.createTaskQuery().processInstanceId(taskInstanceTemp.getProcessInstanceId()).taskAssignee(userId).taskIsEnd()
          .nodeId(recoverNodeId).list();

    }

    TaskInstance recoverToTask = endTaskInstances.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.