Examples of processDefinitionId()


Examples of com.founder.fix.fixflow.core.model.ProcessDefinitionQuery.processDefinitionId()

    String processDefinitionId = processDefinitionBehaviors.get(0).getProcessDefinitionId();
   
    //创建流程定义查询
    processDefinitionQuery = modelService.createProcessDefinitionQuery();
    //查询processDefinitionId的流程定义
    processDefinitionBehaviors = processDefinitionQuery.processDefinitionId(processDefinitionId).list();
    //验证是否为1个
    assertEquals(1, processDefinitionBehaviors.size());
  }
}
View Full Code Here

Examples of org.activiti.engine.history.HistoricActivityInstanceQuery.processDefinitionId()

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

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

   
    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.processDefinitionId()

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

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

        query.processInstanceId(task.getProcessInstanceId().trim());
      }
     
      //流程定义ID
      if( StringUtils.isNotEmpty(task.getProcessDefinitionId()) ){
        query.processDefinitionId(task.getProcessDefinitionId().trim());
      }
     
      //签收人
      if( !StringUtils.isEmpty(task.getAssignee()) )
        query.taskAssignee(task.getAssignee());
View Full Code Here

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

    }
    if (queryRequest.getProcessDefinitionKeyLike() != null) {
      query.processDefinitionKeyLike(queryRequest.getProcessDefinitionKeyLike());
    }
    if (queryRequest.getProcessDefinitionId() != null) {
      query.processDefinitionId(queryRequest.getProcessDefinitionId());
    }
    if (queryRequest.getProcessDefinitionName() != null) {
      query.processDefinitionName(queryRequest.getProcessDefinitionName());
    }
    if (queryRequest.getProcessDefinitionNameLike() != null) {
View Full Code Here

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

   */
  public ProcessDefinition getProcessDefinition( String id ){
    ProcessDefinitionQuery query = repositoryService
        .createProcessDefinitionQuery();
   
    query.processDefinitionId(id);
   
    return query.singleResult();
  }

  /**
 
View Full Code Here

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

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

Examples of org.activiti.engine.runtime.JobQuery.processDefinitionId()

    }
    if (allRequestParams.containsKey("executionId")) {
      query.executionId(allRequestParams.get("executionId"));
    }
    if (allRequestParams.containsKey("processDefinitionId")) {
      query.processDefinitionId(allRequestParams.get("processDefinitionId"));
    }
    if (allRequestParams.containsKey("withRetriesLeft")) {
      if (Boolean.valueOf(allRequestParams.get("withRetriesLeft"))) {
        query.withRetriesLeft();
      }
View Full Code Here

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

    assertEquals("value", runtimeService.getVariable(processInstance.getId(), "var"));
   
    processInstanceBuilder = runtimeService.createProcessInstanceBuilder();
   
    // by id
    processInstance = processInstanceBuilder.processDefinitionId(processDefinition.getId()).businessKey("789").start();
    assertNotNull(processInstance);
    assertEquals(3, runtimeService.createProcessInstanceQuery().processDefinitionKey("oneTaskProcess").count());
    assertEquals("789", processInstance.getBusinessKey());
   
    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.