Examples of caseDefinitionKey()


Examples of org.camunda.bpm.engine.history.HistoricTaskInstanceQuery.caseDefinitionKey()

      .manualStart();

    // then
    HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery();

    query.caseDefinitionKey(key);

    assertEquals(1, query.count());
    assertEquals(1, query.list().size());
    assertNotNull(query.singleResult());
View Full Code Here

Examples of org.camunda.bpm.engine.history.HistoricTaskInstanceQuery.caseDefinitionKey()

  }

  public void testQueryByInvalidCaseDefinitionKey() {
    HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery();

    query.caseDefinitionKey("invalid");

    assertEquals(0, query.count());
    assertEquals(0, query.list().size());
    assertNull(query.singleResult());
View Full Code Here

Examples of org.camunda.bpm.engine.history.HistoricTaskInstanceQuery.caseDefinitionKey()

    assertEquals(0, query.count());
    assertEquals(0, query.list().size());
    assertNull(query.singleResult());

    query.caseDefinitionKey(null);

    assertEquals(0, query.count());
    assertEquals(0, query.list().size());
    assertNull(query.singleResult());
View Full Code Here

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

    query.followUpBeforeExpression(testString);
    query.followUpAfter(testDate);
    query.followUpAfterExpression(testString);
    query.excludeSubtasks();
    query.suspended();
    query.caseDefinitionKey(testString);
    query.caseDefinitionId(testString);
    query.caseDefinitionName(testString);
    query.caseDefinitionNameLike(testString);
    query.caseInstanceId(testString);
    query.caseInstanceBusinessKey(testString);
View Full Code Here

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

    }
    if (json.has(ACTIVE) && json.getBoolean(ACTIVE)) {
      query.active();
    }
    if (json.has(CASE_DEFINITION_KEY)) {
      query.caseDefinitionKey(json.getString(CASE_DEFINITION_KEY));
    }
    if (json.has(CASE_DEFINITION_ID)) {
      query.caseDefinitionId(json.getString(CASE_DEFINITION_ID));
    }
    if (json.has(CASE_DEFINITION_NAME)) {
View Full Code Here

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

    }
    if (json.has(ACTIVE) && json.getBoolean(ACTIVE)) {
      query.active();
    }
    if (json.has(CASE_DEFINITION_KEY)) {
      query.caseDefinitionKey(json.getString(CASE_DEFINITION_KEY));
    }
    if (json.has(CASE_DEFINITION_ID)) {
      query.caseDefinitionId(json.getString(CASE_DEFINITION_ID));
    }
    if (json.has(CASE_DEFINITION_NAME)) {
View Full Code Here

Examples of org.camunda.bpm.engine.repository.CaseDefinitionQuery.caseDefinitionKey()

  public void testQueryByKey() {
    CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();

    // case one
    query
      .caseDefinitionKey("one");

    verifyQueryResults(query, 2);

    // case two
View Full Code Here

Examples of org.camunda.bpm.engine.repository.CaseDefinitionQuery.caseDefinitionKey()

      .caseDefinitionKey("one");

    verifyQueryResults(query, 2);

    // case two
    query
      .caseDefinitionKey("two");

    verifyQueryResults(query, 1);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.repository.CaseDefinitionQuery.caseDefinitionKey()

  }

  public void testQueryByInvalidKey() {
    CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();

    query
      .caseDefinitionKey("invalid");

    verifyQueryResults(query, 0);

    try {
View Full Code Here

Examples of org.camunda.bpm.engine.repository.CaseDefinitionQuery.caseDefinitionKey()

      .caseDefinitionKey("invalid");

    verifyQueryResults(query, 0);

    try {
      query.caseDefinitionKey(null);
      fail();
    } catch (NotValidException e) {}
  }

  public void testQueryByKeyLike() {
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.