Examples of DictionaryLoadingException


Examples of pl.net.bluesoft.rnd.processtool.dict.exception.DictionaryLoadingException

                }
                sb.append(dateSb);
            }
        }
        if (sb.toString().length() > 0) {
            throw new DictionaryLoadingException(sb.toString());
        }
    }
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dict.exception.DictionaryLoadingException

       public void registerProcessDictionaries(InputStream is) {
           if (is != null) {
               ProcessDictionaries dictionaries = (ProcessDictionaries) DictionaryLoader.getInstance().unmarshall(is);
               String processBpmKey = dictionaries.getProcessBpmDefinitionKey();
               if (!Strings.hasText(processBpmKey)) {
                   throw new DictionaryLoadingException("No process name specified in the dictionaries XML");
               }
               Session session = sessionFactory.openSession();
               try {
                   Transaction tx = session.beginTransaction();
                   ProcessDefinitionConfig definitionConfig = getProcessDefinitionDAO(session).getActiveConfigurationByKey(processBpmKey);
                   if (definitionConfig == null) {
                       throw new DictionaryLoadingException("No active definition config with BPM key: " + processBpmKey);
                   }
                   saveDictionaryInternal(session, definitionConfig, dictionaries);
                   tx.commit();
                   logger.warning("Registered dictionaries for process: " + processBpmKey);
               }
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dict.exception.DictionaryLoadingException

                }
                sb.append(dateSb);
            }
        }
        if (sb.toString().length() > 0) {
            throw new DictionaryLoadingException(sb.toString());
        }
    }
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.