Examples of processDefinitionKey()


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

    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

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

    assertEquals(1, processInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询刚才流程的任务
    taskInstances = taskQuery.processDefinitionKey("TaskServiceNewTest").list();
    //验证任务已经不存在
    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();
    //查询归档表中的对应任务
    taskInstances = taskQuery.processDefinitionKey("TaskServiceNewTest").his().list();
    //验证归档表中可以到的任务个数不为0
    assertEquals(4, taskInstances.size());
    //验证历史表查询出来的数据归档时间不为空
    assertNotNull(taskInstances.get(0).getArchiveTime());
   
View Full Code Here

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

    assertNotNull(taskInstances.get(0).getArchiveTime());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //查询归档表中的对应任务
    taskInstances = taskQuery.processDefinitionKey("TaskServiceNewTest").run().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();
    //查询归档表中的对应任务
    taskInstances = taskQuery.processDefinitionKey("TaskServiceNewTest").his().run().list();
    //验证归档表中可以到的任务个数不为0
    assertEquals(4, taskInstances.size());
   
    //创建令牌查询
    TokenQuery tokenQuery = runtimeService.createTokenQuery();
View Full Code Here

Examples of org.activiti.engine.history.HistoricProcessInstanceQuery.processDefinitionKey()

    }
    if (queryRequest.getProcessInstanceIds() != null && !queryRequest.getProcessInstanceIds().isEmpty()) {
      query.processInstanceIds(new HashSet<String>(queryRequest.getProcessInstanceIds()));
    }
    if (queryRequest.getProcessDefinitionKey() != null) {
      query.processDefinitionKey(queryRequest.getProcessDefinitionKey());
    }
    if (queryRequest.getProcessDefinitionId() != null) {
      query.processDefinitionId(queryRequest.getProcessDefinitionId());
    }
    if (queryRequest.getProcessBusinessKey() != null) {
View Full Code Here

Examples of org.activiti.engine.history.HistoricTaskInstanceQuery.processDefinitionKey()

    }
    if (queryRequest.getProcessBusinessKeyLike() != null) {
      query.processInstanceBusinessKeyLike(queryRequest.getProcessBusinessKeyLike());
    }
    if (queryRequest.getProcessDefinitionKey() != null) {
      query.processDefinitionKey(queryRequest.getProcessDefinitionKey());
    }
    if (queryRequest.getProcessDefinitionKeyLike() != null) {
      query.processDefinitionKeyLike(queryRequest.getProcessDefinitionKeyLike());
    }
    if (queryRequest.getProcessDefinitionId() != null) {
View Full Code Here

Examples of org.activiti.engine.repository.ProcessDefinitionQuery.processDefinitionKey()

    }
    if (allRequestParams.containsKey("categoryNotEquals")) {
      processDefinitionQuery.processDefinitionCategoryNotEquals(allRequestParams.get("categoryNotEquals"));
    }
    if (allRequestParams.containsKey("key")) {
      processDefinitionQuery.processDefinitionKey(allRequestParams.get("key"));
    }
    if (allRequestParams.containsKey("keyLike")) {
      processDefinitionQuery.processDefinitionKeyLike(allRequestParams.get("keyLike"));
    }
    if (allRequestParams.containsKey("name")) {
View Full Code Here

Examples of org.activiti.engine.runtime.ExecutionQuery.processDefinitionKey()

    }
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
    if (queryRequest.getProcessDefinitionKey() != null) {
      query.processDefinitionKey(queryRequest.getProcessDefinitionKey());
    }
    if (queryRequest.getProcessDefinitionId() != null) {
      query.processDefinitionId(queryRequest.getProcessDefinitionId());
    }
    if (queryRequest.getProcessBusinessKey() != null) {
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceBuilder.processDefinitionKey()

    ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult();
   
    ProcessInstanceBuilder processInstanceBuilder = runtimeService.createProcessInstanceBuilder();
   
    // by key
    ProcessInstance processInstance = processInstanceBuilder.processDefinitionKey("oneTaskProcess").businessKey("123").start();
    assertNotNull(processInstance);
    assertEquals("123", processInstance.getBusinessKey());
    assertEquals(1, runtimeService.createProcessInstanceQuery().processDefinitionKey("oneTaskProcess").count());
   
    processInstanceBuilder = runtimeService.createProcessInstanceBuilder();
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.