private void fillInstanceInfo(TInstanceInfo info, ProcessInstanceDAO instance) { fillInstanceSummary(info, instance); if (instance.getRootScope() != null) info.setRootScope(genScopeRef(instance.getRootScope())); ProcessInstanceDAO.EventsFirstLastCountTuple flc = instance.getEventsFirstLastCount(); TInstanceInfo.EventInfo eventInfo = info.addNewEventInfo(); if (flc != null) { eventInfo.setFirstDtime(toCalendar(flc.first)); eventInfo.setLastDtime(toCalendar(flc.last)); eventInfo.setCount(flc.count); } // 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()); } } } }
for (Map.Entry<QName, String> property : correlationSetDAO.getProperties().entrySet()) { TCorrelationProperty tproperty = correlationSet.addNewCorrelationProperty(); tproperty.setCsetid("" + correlationSetDAO.getCorrelationSetId()); tproperty.setPropertyName(property.getKey()); tproperty.setStringValue(property.getValue());