Package pl.net.bluesoft.rnd.processtool.model.dict

Examples of pl.net.bluesoft.rnd.processtool.model.dict.ProcessDictionary.items()


                                element.getDict(), i18NSource.getLocale().toString());

                if (dict != null) {
                    Date validForDate = getValidForDate(element);
                    int i = 0;
                    for (Object o : dict.items()) {
                        ProcessDictionaryItem item = (ProcessDictionaryItem) o;
                        component.addItem(item.getKey());
                        String itemKey = item.getKey().toString();
                        ProcessDictionaryItemValue val = item.getValueForDate(validForDate);
                        String message = getMessage((String) (val != null ? val.getValue() : item.getKey()));
View Full Code Here


    private void addDictionary(String languageCode, String dictionaryName) {
        ProcessDictionary dict = processDictionaryRegistry.getSpecificOrDefaultOrGlobalDictionary(
                processDefinitionConfig, "db", dictionaryName, languageCode);
        if (dict != null) {
            Map<String, String> dictionary = new HashMap<String, String>();
            for (Object item : dict.items()) {
                ProcessDictionaryItem pdItem = (ProcessDictionaryItem) item;
                dictionary.put(pdItem.getKey().toString(), pdItem.getValueForCurrentDate().toString());
            }
            dictionaryMap.put(dictionaryKey(languageCode, dictionaryName), dictionary);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.