Collection<ProcessDefinitionConfig> configs = ctx.getProcessDefinitionDAO().getActiveConfigurations();
processContainer.addAll(configs);
for (ProcessDefinitionConfig config : processContainer.getItemIds()) {
processDefinitionSelect.setItemCaption(config, i18NSource.getMessage(config.getDescription()));
}
ProcessDictionaryProvider pdp = ctx.getProcessDictionaryRegistry().getProcessDictionaryProvider("db");
List<ProcessDBDictionary> dictionaries = pdp.fetchAllActiveProcessDictionaries();
for (ProcessDBDictionary dict : dictionaries) {
if (hasPermissionsForDictionary(dict)) {
Map<String, Set<ProcessDBDictionary>> dictionariesMap = processDictionariesMap.get(dict.getProcessDefinition());
if (dictionariesMap == null) {
dictionariesMap = new TreeMap<String, Set<ProcessDBDictionary>>();