Package com.founder.fix.fixflow.core.runtime

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


    queryExpandTo.setWhereSqlObj(whereSqlObj);
    //增加扩展查询
    processInstanceQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    processInstanceQuery.processDefinitionKey("TaskServiceNewTest");
    list = processInstanceQuery.list();
    //验证是否为1个
    assertEquals(1, list.size());
   
    /**********************本例子通过扩展查询的方法获取流程定义表中的procecss_name和resource_name字段***************************/
    //重置流程实例查询
 
View Full Code Here


    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);
    //获取扩展查询的字段
    String process_name = (String)processInstance.getExtensionField("PROCESS_NAME");
    String RESOURCE_NAME = (String)processInstance.getExtensionField("RESOURCE_NAME");
View Full Code Here

    queryExpandTo.setWhereSqlObj(whereSqlObj);
    //增加扩展查询
    processInstanceQuery.queryExpandTo(queryExpandTo);
    //查询TaskServiceNewTest经过扩展查询后的结果
    processInstanceQuery.processDefinitionKey("ProcessVariablesTest");
    processInstances = processInstanceQuery.list();
    //验证是否为5个
    assertEquals(5, processInstances.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.