// Setting valued correlation properties
if (!instance.getCorrelationSets().isEmpty()) {
TInstanceInfo.CorrelationProperties corrProperties = info.addNewCorrelationProperties();
for (CorrelationSetDAO correlationSetDAO : instance.getCorrelationSets()) {
for (Map.Entry<QName, String> property : correlationSetDAO.getProperties().entrySet()) {
TCorrelationProperty tproperty = corrProperties.addNewCorrelationProperty();
tproperty.setCsetid("" + correlationSetDAO.getCorrelationSetId());
tproperty.setPropertyName(property.getKey());
tproperty.setStringValue(property.getValue());
}
}
}
if (instance.getActivityFailureCount() > 0) {