assertEquals(formProperties2.get(0).getValue(), "01/12/2012");
List<HistoricDetail> details = historyService.createHistoricDetailQuery().processInstanceId(processInstance.getId()).list();
for (HistoricDetail historicDetail : details) {
if (historicDetail instanceof HistoricFormPropertyEntity) {
HistoricFormPropertyEntity formEntity = (HistoricFormPropertyEntity) historicDetail;
System.out.println(String.format("form->, key: %s, value: %s", formEntity.getPropertyId(), formEntity.getPropertyValue()));
} else if (historicDetail instanceof HistoricVariableUpdate) {
HistoricVariableUpdate varEntity = (HistoricVariableUpdate) historicDetail;
System.out.println(String.format("variable->, key: %s, value: %s", varEntity.getVariableName(), varEntity.getValue()));
}
}