Examples of queryExpandTo()


Examples of com.founder.fix.fixflow.core.runtime.ProcessInstanceQuery.queryExpandTo()

    queryExpandTo.setWhereSql("INSTANCE_STATUS = ?");
    //增加扩展wheresql的参数
    whereSqlObj.add("RUNNING");
    queryExpandTo.setWhereSqlObj(whereSqlObj);
    //增加扩展查询
    processInstanceQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    processInstanceQuery.processDefinitionKey("TaskServiceNewTest");
    list = processInstanceQuery.list();
    //验证是否为1个
    assertEquals(1, list.size());
View Full Code Here

Examples of com.founder.fix.fixflow.core.runtime.ProcessInstanceQuery.queryExpandTo()

    //添加扩展的字段
    queryExpandTo.setFieldSql("fixflow_def_processdefinition.PROCESS_NAME,fixflow_def_processdefinition.RESOURCE_NAME");
    //增加扩展查询的left join语句
    queryExpandTo.setLeftJoinSql("left join fixflow_def_processdefinition on processdefinition_id = fixflow_def_processdefinition.process_id");
    //增加扩展查询
    processInstanceQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    processInstanceQuery.processDefinitionKey("TaskServiceNewTest");
    list = processInstanceQuery.list();
    //获取第一个流程实例结果
    ProcessInstance  processInstance = list.get(0);
View Full Code Here

Examples of com.founder.fix.fixflow.core.runtime.ProcessInstanceQuery.queryExpandTo()

    //增加扩展wheresql的参数
    whereSqlObj.add("queryVariable");
    whereSqlObj.add("查询变量1");
    queryExpandTo.setWhereSqlObj(whereSqlObj);
    //增加扩展查询
    processInstanceQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    processInstanceQuery.processDefinitionKey("ProcessVariablesTest");
    processInstances = processInstanceQuery.list();
    //验证是否为5个
    assertEquals(5, processInstances.size());
View Full Code Here

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

     
      if (StringUtil.isNotEmpty(leftJoinStr)) {
        queryExpandTo.setLeftJoinSql(leftJoinStr);
      }
      queryExpandTo.setWhereSql(whereSql);
      tq.queryExpandTo(queryExpandTo);
     
      List<TaskInstance> lts = tq.orderByTaskCreateTime().desc().listPagination(pageIndex, rowNum);
      Long count = tq.count();
      List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
     
View Full Code Here

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

    queryExpandTo.setWhereSql("NODE_ID = ?");
    //增加扩展wheresql的参数
    whereSqlObj.add("UserTask_1");
    queryExpandTo.setWhereSqlObj(whereSqlObj);
    //增加扩展查询
    taskQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    taskQuery.processDefinitionKey("TaskServiceNewTest");
    List<TaskInstance> list = taskQuery.list();
    //验证是否为1个
    assertEquals(1, list.size());
View Full Code Here

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

    //添加扩展的字段
    queryExpandTo.setFieldSql("fixflow_def_processdefinition.PROCESS_NAME,fixflow_def_processdefinition.RESOURCE_NAME");
    //增加扩展查询的left join语句(taskinstance持久化层的别名是“T”所以连接时需要加上,否则可能出现“未明确定义列”)
    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);
View Full Code Here

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

    //增加扩展wheresql的参数
    whereSqlObj.add("queryVariable");
    whereSqlObj.add("查询变量1");
    queryExpandTo.setWhereSqlObj(whereSqlObj);
    //增加扩展查询
    taskQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    taskQuery.processDefinitionKey("ProcessVariablesTest");
    taskInstances = taskQuery.list();
    //验证是否为5个
    assertEquals(15, taskInstances.size());
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.