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

Examples of pl.net.bluesoft.rnd.processtool.dict.xml.ProcessDictionaries


  public String getDictionary() {
    return formatProcessDictionaries(processDictionaries.getWrappedObject());
  }

  public void setDictionary(String dictionary) {
    ProcessDictionaries parsedProcessDictionaries = parseProcessDictionaries(dictionary);

    if (parsedProcessDictionaries == null) {
      parsedProcessDictionaries = new ProcessDictionaries();
    }

    processDictionaries = new XmlProcessDictionariesWrapper(parsedProcessDictionaries);

    languageSelect.removeAllItems();
View Full Code Here


  }

  @Override
       public void registerGlobalDictionaries(InputStream is) {
           if (is != null) {
               ProcessDictionaries dictionaries = (ProcessDictionaries) DictionaryLoader.getInstance().unmarshall(is);
               String processBpmKey = dictionaries.getProcessBpmDefinitionKey();
               if (Strings.hasText(processBpmKey)) {
                   logger.warning("Global process dictionary should not be defined for a specific process: "
                           + dictionaries.getProcessBpmDefinitionKey());
               }
               Session session = sessionFactory.openSession();
               try {
                   Transaction tx = session.beginTransaction();
                   saveDictionaryInternal(session, null, dictionaries);
View Full Code Here

       }

       @Override
       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 {
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.dict.xml.ProcessDictionaries

Copyright © 2018 www.massapicom. 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.