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

Examples of pl.net.bluesoft.rnd.processtool.model.dict.db.ProcessDBDictionary


        ProcessDefinitionDAO processDefinitionDao = registry.getProcessDefinitionDAO(ctx.getHibernateSession());
        ProcessDefinitionConfig processDefinition = processDefinitionDao.getActiveConfigurationByKey(changeRequest.getProcessDeifinitionName());
       
        ProcessDictionaryDAO dictionaryDao = registry.getProcessDictionaryDAO(ctx.getHibernateSession());
       
        ProcessDBDictionary dictionary = dictionaryDao.fetchProcessDictionary(processDefinition, changeRequest.getDictionaryId(), changeRequest.getLanguageCode());
        if(dictionary == null)
        {
          dictionary = createDictionary(processDefinition, changeRequest.getDictionaryId(), changeRequest.getLanguageCode());
          dictionaryDao.saveOrUpdate(dictionary);
        }
View Full Code Here


    });
  }
 
  private ProcessDBDictionary createDictionary(ProcessDefinitionConfig processDefinition, String dictionaryId, String languageCode)
  {
    ProcessDBDictionary processDictionary = new ProcessDBDictionary();
    processDictionary.setDefaultDictionary(true);
    processDictionary.setDictionaryId(dictionaryId);
    processDictionary.setLanguageCode(languageCode);
    processDictionary.setProcessDefinition(processDefinition);
   
    return processDictionary;
  }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.model.dict.db.ProcessDBDictionary

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.