Map<String, Object> variables = new HashMap<String, Object>();
variables.put("aVariable", "aValue");
caseService.reenableCaseExecution(caseExecutionId, variables);
// then
CaseExecution caseExecution = caseExecutionQuery.singleResult();
// the human task is disabled
assertFalse(caseExecution.isDisabled());
assertFalse(caseExecution.isActive());
assertTrue(caseExecution.isEnabled());
// there is a variable set on the case instance
VariableInstance variable = runtimeService.createVariableInstanceQuery().singleResult();
assertNotNull(variable);