VariableInstanceQuery query = runtimeService
.createVariableInstanceQuery()
.variableName("variable")
.caseInstanceIdIn(caseInstanceId);
Assert.assertNotNull(query.singleResult());
Assert.assertEquals("listener-notified-1", query.singleResult().getValue());
caseService
.withCaseExecution(humanTaskId)
.setVariable("variable", "manual-start")