.manualStart();
// then
// the child case execution is active...
CaseExecution caseExecution = caseExecutionQuery.singleResult();
assertTrue(caseExecution.isActive());
// ... and not enabled
assertFalse(caseExecution.isEnabled());
// (1) one case case execution representing "PI_HumanTask_1"
CaseExecution firstHumanTask = caseExecutionQuery
.activityId("PI_HumanTask_1")
.singleResult();
assertNotNull(firstHumanTask);
assertTrue(firstHumanTask.isEnabled());
assertFalse(firstHumanTask.isActive());
// (2) one case case execution representing "PI_HumanTask_2"
CaseExecution secondHumanTask = caseExecutionQuery
.activityId("PI_HumanTask_2")
.singleResult();
assertNotNull(secondHumanTask);
assertTrue(secondHumanTask.isEnabled());
assertFalse(secondHumanTask.isActive());
// the case instance has two variables:
// - aVariableName
// - anotherVariableName
List<VariableInstance> result = runtimeService