Examples of processInstanceBusinessKey()


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

      ProcessInstanceQuery tq = engine.getRuntimeService()
          .createProcessInstanceQuery();
     
      String bizKey = StringUtil.getString(filter.get("BIZ_KEY"))//业务数据
      if(StringUtil.isNotEmpty(bizKey))
        tq.processInstanceBusinessKey(bizKey);
     
      String initor = StringUtil.getString(filter.get("initor"))//发起人
      if(StringUtil.isNotEmpty(initor))
        tq.initiator(initor);
     
View Full Code Here

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

    assertEquals(10, count);
   
    //重置查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询对应bizKey的流程实例(方法2)
    processInstances = processInstanceQuery.processInstanceBusinessKey("BK_testStartProcessInstanceByKey","Process_TaskServiceTest").list();
    //验证是否有10个
    assertEquals(10, processInstances.size());
   
    //重置查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

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

    HistoricProcessInstanceQuery query = ActivitiUtil.getHistoryService().createHistoricProcessInstanceQuery();
    query = query.unfinished();
    String processDefinitionId = getQuery().getValues("processDefinitionId");
    String processInstanceKey = getQuery().getValues("businessKey");
    query = processDefinitionId == null ? query : query.processDefinitionId(processDefinitionId);
    query = processInstanceKey == null ? query : query.processInstanceBusinessKey(processInstanceKey);
   
    DataResponse response = new ProcessInstancesPaginateList().paginateList(getQuery(), query, "id", properties);
    return response;
  }
}
View Full Code Here

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

    }
    if (queryRequest.getProcessDefinitionId() != null) {
      query.processDefinitionId(queryRequest.getProcessDefinitionId());
    }
    if (queryRequest.getProcessBusinessKey() != null) {
      query.processInstanceBusinessKey(queryRequest.getProcessBusinessKey());
    }
    if (queryRequest.getInvolvedUser() != null) {
      query.involvedUser(queryRequest.getInvolvedUser());
    }
    if (queryRequest.getSuperProcessInstanceId() != null) {
View Full Code Here

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

    }
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
    if (queryRequest.getProcessBusinessKey() != null) {
      query.processInstanceBusinessKey(queryRequest.getProcessBusinessKey());
    }
    if (queryRequest.getProcessBusinessKeyLike() != null) {
      query.processInstanceBusinessKeyLike(queryRequest.getProcessBusinessKeyLike());
    }
    if (queryRequest.getProcessDefinitionKey() != null) {
View Full Code Here

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

    }
    if (queryRequest.getProcessDefinitionId() != null) {
      query.processDefinitionId(queryRequest.getProcessDefinitionId());
    }
    if (queryRequest.getProcessBusinessKey() != null) {
      query.processInstanceBusinessKey(queryRequest.getProcessBusinessKey());
    }
    if (queryRequest.getActivityId() != null) {
      query.activityId(queryRequest.getActivityId());
    }
    if (queryRequest.getParentId() != null) {
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.processInstanceBusinessKey()

        ProcessInstance instance = mock(ProcessInstance.class);
        when(instance.getId()).thenReturn(processInstanceId);

        ProcessInstanceQuery query = mock(ProcessInstanceQuery.class);
        when(query.singleResult()).thenReturn(instance);
        when(query.processInstanceBusinessKey(eq(businessKey))).thenReturn(query);

        RuntimeService runtimeService = mock(RuntimeService.class);
        when(runtimeService.createProcessInstanceQuery()).thenReturn(query);
        when(runtimeService.getVariable(eq(processInstanceId), eq(CoreProcessVariables.PROVIDER)))
            .thenReturn(providerId);
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.processInstanceBusinessKey()

    }
    if (queryRequest.getProcessDefinitionId() != null) {
      query.processDefinitionId(queryRequest.getProcessDefinitionId());
    }
    if (queryRequest.getProcessBusinessKey() != null) {
      query.processInstanceBusinessKey(queryRequest.getProcessBusinessKey());
    }
    if (queryRequest.getInvolvedUser() != null) {
      query.involvedUser(queryRequest.getInvolvedUser());
    }
    if (queryRequest.getSuspended() != null) {
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.processInstanceBusinessKey()

        ProcessInstance instance = mock(ProcessInstance.class);
        when(instance.getId()).thenReturn(processInstanceId);

        ProcessInstanceQuery query = mock(ProcessInstanceQuery.class);
        when(query.singleResult()).thenReturn(instance);
        when(query.processInstanceBusinessKey(eq(businessKey))).thenReturn(query);

        RuntimeService runtimeService = mock(RuntimeService.class);
        when(runtimeService.createProcessInstanceQuery()).thenReturn(query);
        when(runtimeService.getVariable(eq(processInstanceId), eq(CoreProcessVariables.PROVIDER)))
            .thenReturn(providerId);
View Full Code Here

Examples of org.activiti.engine.task.TaskQuery.processInstanceBusinessKey()

    }
    if (request.getProcessInstanceId() != null) {
      taskQuery.processInstanceId(request.getProcessInstanceId());
    }
    if (request.getProcessInstanceBusinessKey() != null) {
      taskQuery.processInstanceBusinessKey(request.getProcessInstanceBusinessKey());
    }
    if (request.getExecutionId() != null) {
      taskQuery.executionId(request.getExecutionId());
    }
    if (request.getCreatedOn() != null) {
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.