Examples of processDefinitionId()


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

    assertEquals(3, runtimeService.createProcessInstanceQuery().processDefinitionKey("oneTaskProcess").count());
    assertEquals("789", processInstance.getBusinessKey());
   
    processInstanceBuilder = runtimeService.createProcessInstanceBuilder();
    // by id with variables
    processInstance = processInstanceBuilder.processDefinitionId(processDefinition.getId()).businessKey("101123")
        .addVariable("var", "value2").start();
    assertNotNull(processInstance);
    assertEquals(4, runtimeService.createProcessInstanceQuery().processDefinitionKey("oneTaskProcess").count());
    assertEquals("value2", runtimeService.getVariable(processInstance.getId(), "var"));
    assertEquals("101123", processInstance.getBusinessKey());
View Full Code Here

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

    assertEquals("value2", runtimeService.getVariable(processInstance.getId(), "var"));
    assertEquals("101123", processInstance.getBusinessKey());
   
    processInstanceBuilder = runtimeService.createProcessInstanceBuilder();
    // by id and processInstance name
    processInstance = processInstanceBuilder.processDefinitionId(processDefinition.getId()).businessKey("101124")
        .processInstanceName("processName2").start();
    assertNotNull(processInstance);
    assertEquals(5, runtimeService.createProcessInstanceQuery().processDefinitionKey("oneTaskProcess").count());
    assertEquals("processName2", processInstance.getName());
    assertEquals("101124", processInstance.getBusinessKey());
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.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.runtime.ProcessInstanceQuery.processDefinitionId()

 
  protected ProcessInstanceQuery constructQuery() {
    ProcessInstanceQuery query = runtimeService.createProcessInstanceQuery()
      .orderByProcessInstanceId().asc();
    if (processDefinitionId != null) {
      query.processDefinitionId(processDefinitionId);
    }
    return query;
  }
 
  public void setProcessDefintionId(String processDefinitionId) {
View Full Code Here

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

 
  protected ProcessInstanceQuery constructQuery() {
    ProcessInstanceQuery query = runtimeService.createProcessInstanceQuery()
      .orderByProcessInstanceId().asc();
    if (processDefinitionId != null) {
      query.processDefinitionId(processDefinitionId);
    }
    return query;
  }
 
  public void setProcessDefintionId(String processDefinitionId) {
View Full Code Here

Examples of org.camunda.bpm.engine.history.HistoricIncidentQuery.processDefinitionId()

  }

  public void testQueryByInvalidProcessDefinitionId() {
    HistoricIncidentQuery query = historyService.createHistoricIncidentQuery();

    assertEquals(0, query.processDefinitionId("invalid").list().size());
    assertEquals(0, query.processDefinitionId("invalid").count());

    try {
      query.processDefinitionId(null);
      fail("It was possible to set a null value as processDefinitionId.");
View Full Code Here

Examples of org.camunda.bpm.engine.history.HistoricIncidentQuery.processDefinitionId()

  public void testQueryByInvalidProcessDefinitionId() {
    HistoricIncidentQuery query = historyService.createHistoricIncidentQuery();

    assertEquals(0, query.processDefinitionId("invalid").list().size());
    assertEquals(0, query.processDefinitionId("invalid").count());

    try {
      query.processDefinitionId(null);
      fail("It was possible to set a null value as processDefinitionId.");
    } catch (ProcessEngineException e) { }
View Full Code Here

Examples of org.camunda.bpm.engine.history.HistoricIncidentQuery.processDefinitionId()

    assertEquals(0, query.processDefinitionId("invalid").list().size());
    assertEquals(0, query.processDefinitionId("invalid").count());

    try {
      query.processDefinitionId(null);
      fail("It was possible to set a null value as processDefinitionId.");
    } catch (ProcessEngineException e) { }
  }

  @Deployment(resources={"org/camunda/bpm/engine/test/api/runtime/oneFailingServiceProcess.bpmn20.xml"})
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.processDefinitionId()

    query.taskCreatedAfter(testDate);
    query.taskCreatedAfterExpression(testString);
    query.taskDefinitionKey(testString);
    query.taskDefinitionKeyLike(testString);
    query.processDefinitionKey(testString);
    query.processDefinitionId(testString);
    query.processDefinitionName(testString);
    query.processDefinitionNameLike(testString);
    query.processInstanceBusinessKey(testString);
    query.processInstanceBusinessKeyLike(testString);
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.processDefinitionId()

    }
    if (json.has(PROCESS_DEFINITION_KEY)) {
      query.processDefinitionKey(json.getString(PROCESS_DEFINITION_KEY));
    }
    if (json.has(PROCESS_DEFINITION_ID)) {
      query.processDefinitionId(json.getString(PROCESS_DEFINITION_ID));
    }
    if (json.has(PROCESS_DEFINITION_NAME)) {
      query.processDefinitionName(json.getString(PROCESS_DEFINITION_NAME));
    }
    if (json.has(PROCESS_DEFINITION_NAME_LIKE)) {
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.