HistoricVariableInstanceQuery historicVariableInstanceQuery = historyService.createHistoricVariableInstanceQuery()
.variableName("undoBookSecondHotel");
if(processEngineConfiguration.getHistoryLevel().getId() >= ProcessEngineConfigurationImpl.HISTORYLEVEL_AUDIT) {
assertEquals(1, historicVariableInstanceQuery.count());
assertEquals("undoBookSecondHotel", historicVariableInstanceQuery.list().get(0).getVariableName());
assertEquals(5, historicVariableInstanceQuery.list().get(0).getValue());
assertEquals(0, historyService.createHistoricVariableInstanceQuery()
.processInstanceId(processInstance.getId())
.variableName("undoBookFlight")