Search in sources :

Example 16 with CaseExecutionQuery

use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.

the class CaseServiceTest method testCreateCaseExecutionQuery.

public void testCreateCaseExecutionQuery() {
    CaseExecutionQuery query = caseService.createCaseExecutionQuery();
    assertNotNull(query);
}
Also used : CaseExecutionQuery(org.camunda.bpm.engine.runtime.CaseExecutionQuery)

Example 17 with CaseExecutionQuery

use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.

the class MultiTenancyCaseExecutionQueryTest method testQueryByNonExistingTenantId.

public void testQueryByNonExistingTenantId() {
    CaseExecutionQuery query = caseService.createCaseExecutionQuery().tenantIdIn("nonExisting");
    assertThat(query.count(), is(0L));
}
Also used : CaseExecutionQuery(org.camunda.bpm.engine.runtime.CaseExecutionQuery)

Example 18 with CaseExecutionQuery

use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.

the class MultiTenancyCaseExecutionQueryTest method testQueryByTenantId.

public void testQueryByTenantId() {
    CaseExecutionQuery query = caseService.createCaseExecutionQuery().tenantIdIn(TENANT_ONE);
    assertThat(query.count(), is(2L));
    query = caseService.createCaseExecutionQuery().tenantIdIn(TENANT_TWO);
    assertThat(query.count(), is(2L));
}
Also used : CaseExecutionQuery(org.camunda.bpm.engine.runtime.CaseExecutionQuery)

Example 19 with CaseExecutionQuery

use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.

the class MultiTenancyCaseExecutionQueryTest method testQueryByExecutionsWithoutTenantId.

public void testQueryByExecutionsWithoutTenantId() {
    CaseExecutionQuery query = caseService.createCaseExecutionQuery().withoutTenantId();
    assertThat(query.count(), is(2L));
}
Also used : CaseExecutionQuery(org.camunda.bpm.engine.runtime.CaseExecutionQuery)

Example 20 with CaseExecutionQuery

use of org.camunda.bpm.engine.runtime.CaseExecutionQuery in project camunda-bpm-platform by camunda.

the class MultiTenancyCaseExecutionQueryTest method testQueryByTenantIds.

public void testQueryByTenantIds() {
    CaseExecutionQuery query = caseService.createCaseExecutionQuery().tenantIdIn(TENANT_ONE, TENANT_TWO);
    assertThat(query.count(), is(4L));
}
Also used : CaseExecutionQuery(org.camunda.bpm.engine.runtime.CaseExecutionQuery)

Aggregations

CaseExecutionQuery (org.camunda.bpm.engine.runtime.CaseExecutionQuery)226 Deployment (org.camunda.bpm.engine.test.Deployment)70 CaseExecution (org.camunda.bpm.engine.runtime.CaseExecution)47 ProcessEngineException (org.camunda.bpm.engine.ProcessEngineException)24 NotValidException (org.camunda.bpm.engine.exception.NotValidException)24 CaseInstance (org.camunda.bpm.engine.runtime.CaseInstance)16 ArrayList (java.util.ArrayList)14 VariableInstance (org.camunda.bpm.engine.runtime.VariableInstance)13 Date (java.util.Date)12 Task (org.camunda.bpm.engine.task.Task)10 VariableMap (org.camunda.bpm.engine.variable.VariableMap)9 HashMap (java.util.HashMap)8 ProcessEngine (org.camunda.bpm.engine.ProcessEngine)4 CaseInstanceQuery (org.camunda.bpm.engine.runtime.CaseInstanceQuery)4 CaseService (org.camunda.bpm.engine.CaseService)2 NotAllowedException (org.camunda.bpm.engine.exception.NotAllowedException)2 DescribesScenario (org.camunda.bpm.qa.upgrade.DescribesScenario)2 ScenarioSetup (org.camunda.bpm.qa.upgrade.ScenarioSetup)2 CountResultDto (org.camunda.bpm.engine.rest.dto.CountResultDto)1 CaseExecutionDto (org.camunda.bpm.engine.rest.dto.runtime.CaseExecutionDto)1