Package com.founder.fix.fixflow.core.task

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


      try{
        TaskQuery tq = engine.getTaskService().createTaskQuery();
        IdentityService identityService = engine.getIdentityService();
        tq.processInstanceId(processInstanceId);
        tq.taskIsEnd().orderByEndTime().asc();
        List<TaskInstance> instances = tq.list();
        List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
        for(TaskInstance tmp:instances){
          Map<String,Object> instanceMap = tmp.getPersistentState();
          String assigneeUserId = tmp.getAssignee();
          if(StringUtil.isNotEmpty(assigneeUserId)){
View Full Code Here


            instanceMap.put("assgneeUserName", "(空用户名)");
          }
          instanceMaps.add(instanceMap);
        }
        tq.taskNotEnd().orderByTaskCreateTime().asc();
        List<TaskInstance> instancesNotEnd = tq.list();
       
        List<Map<String,Object>> notEndInstanceMaps = new ArrayList<Map<String,Object>>();
        for(TaskInstance tmp:instancesNotEnd){
          Map<String,Object> instanceMap = tmp.getPersistentState();
          String assigneeUserId = tmp.getAssignee();
View Full Code Here

      List<TaskInstance> taskInstanceQueryTos = new ArrayList<TaskInstance>();
      TaskQuery tq = engine.getTaskService().createTaskQuery();
      tq.processInstanceId(processInstanceId);
      tq.taskNotEnd();
      taskInstanceQueryTos = tq.list();
      for (TaskInstance taskInstanceQueryTo2 : taskInstanceQueryTos) {
        if (taskInfo.equals("") && taskInstanceQueryTos.size() == 1) {
          taskInfo = taskInfo + processState(taskInstanceQueryTo2,engine);
        } else {
          taskInfo = taskInfo + "<div>"
View Full Code Here

    List<TaskInstance> taskInstanceQueryToList = new ArrayList<TaskInstance>();


    taskQuery.processInstanceId(processInstanceId);
    taskQuery.taskIsEnd().orderByEndTime().asc().orderByTaskCreateTime().asc();
    taskInstanceQueryToList = taskQuery.list();
   
   
   
    List<String> processInstanceIdList=new ArrayList<String>();
    processInstanceIdList.add(token.getProcessInstanceId());
View Full Code Here

    queryExpandTo.setWhereSqlObj(whereSqlObj);
    //增加扩展查询
    taskQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    taskQuery.processDefinitionKey("TaskServiceNewTest");
    List<TaskInstance> list = taskQuery.list();
    //验证是否为1个
    assertEquals(1, list.size());
    //获取得到的任务实例
    TaskInstance taskInstance = list.get(0);
    //验证得到的任务实例nodeid是否正确
View Full Code Here

    queryExpandTo.setLeftJoinSql("left join fixflow_def_processdefinition on T.processdefinition_id = fixflow_def_processdefinition.process_id");
    //增加扩展查询
    taskQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    taskQuery.processDefinitionKey("TaskServiceNewTest");
    list = taskQuery.list();
    //获取第一个流程实例结果
    taskInstance = list.get(0);
    //获取扩展查询的字段
    String process_name = (String)taskInstance.getExtensionField("PROCESS_NAME");
    String RESOURCE_NAME = (String)taskInstance.getExtensionField("RESOURCE_NAME");
View Full Code Here

    queryExpandTo.setWhereSqlObj(whereSqlObj);
    //增加扩展查询
    taskQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    taskQuery.processDefinitionKey("ProcessVariablesTest");
    taskInstances = taskQuery.list();
    //验证是否为5个
    assertEquals(15, taskInstances.size());
   
  }
 
View Full Code Here

   
   
    String processInstanceId = processInstances.get(0).getId();
    TaskQuery taskQuery = taskService.createTaskQuery();
    taskQuery.processInstanceId(processInstanceId).taskNotEnd();
    TaskInstance taskInstance = taskQuery.list().get(0);
   
    Date begin = new Date();
    //创建通用命令
    ExpandTaskCommand expandTaskCommandGeneral=new ExpandTaskCommand();
    //设置命令为处理
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.