Examples of processDefinitionKey()


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

    historyService.archiveByProcessInstanceIds(processInstanceIds);
   
    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询运行表的流程实例
    List<ProcessInstance> processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").list();
    //验证运行表剩3条
    assertEquals(3, processInstances.size());
   
    //重置流程查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

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

    assertEquals(3, processInstances.size());
   
    //重置流程查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询历史表数据
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").his().list();
    //验证历史表中有2条
    assertEquals(2, processInstances.size());
  }
}
View Full Code Here

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

    whereSqlObj.add("UserTask_1");
    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);
View Full Code Here

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

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

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

    }
   
    //创建任务查询
    TaskQuery taskQuery = taskService.createTaskQuery();
    //查询ProcessVariablesTest查询变量值等于"查询变量"的流程实例
    List<TaskInstance> taskInstances = taskQuery.processDefinitionKey("ProcessVariablesTest").processInstanceVariableData("查询变量", false).list();
    //验证是否为0
    assertEquals(0,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
View Full Code Here

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

    assertEquals(0,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询ProcessVariablesTest查询变量值等于"查询变量"的流程实例
    taskInstances = taskQuery.processDefinitionKey("ProcessVariablesTest").processInstanceVariableData("查询变量1", false).list();
    //验证是否为15
    assertEquals(15,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
View Full Code Here

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

    assertEquals(15,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询ProcessVariablesTest查询变量值等于"查询变量"的流程实例
    taskInstances = taskQuery.processDefinitionKey("ProcessVariablesTest").processInstanceVariableData("查询变量", true).list();
    //验证是否为15
    assertEquals(15,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
View Full Code Here

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

    assertEquals(15,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询ProcessVariablesTest查询变量query值等于"查询变量"的流程实例,应该为0
    taskInstances = taskQuery.processDefinitionKey("ProcessVariablesTest").processInstanceVariableData("query","查询变量1", false).list();
    //验证是否为0
    assertEquals(0,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
View Full Code Here

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

    assertEquals(0,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询ProcessVariablesTest查询变量queryVariable值等于"查询变量"的流程实例,应该为15
    taskInstances = taskQuery.processDefinitionKey("ProcessVariablesTest").processInstanceVariableData("queryVariable","查询变量1", false).list();
    //验证是否为15
    assertEquals(15,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
View Full Code Here

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

    assertEquals(15,taskInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询ProcessVariablesTest查询变量queryVariable值like"查询变量"的流程实例,应该为15
    taskInstances = taskQuery.processDefinitionKey("ProcessVariablesTest").processInstanceVariableData("queryVariable","查询变量", true).list();
    //验证是否为15
    assertEquals(15,taskInstances.size());
       
    /**********************本例子通过扩展查询的方法获取ProcessVariablesTest流程的查询变量queryVariable =查询变量1 的流程实例***************************/
    //重置任务查询
 
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.