use of org.wso2.carbon.humantask.core.configuration.HumanTaskServerConfiguration in project carbon-business-process by wso2.
the class HumanTaskServer method loadHumanTaskServerConfiguration.
/**
* Read the human task configuration file and load it to memory. If configuration file is not there default
* configuration will be created.
*/
private void loadHumanTaskServerConfiguration() {
if (log.isDebugEnabled()) {
log.debug("Loading Human Task Server Configuration...");
}
if (isHumanTaskConfigurationFileAvailable()) {
File htServerConfigFile = new File(calculateHumanTaskServerConfigurationFilePath());
serverConfig = new HumanTaskServerConfiguration(htServerConfigFile);
} else {
log.info("Humantask configuration file: " + HumanTaskConstants.HUMANTASK_CONFIG_FILE + " not found. Loading default configurations.");
serverConfig = new HumanTaskServerConfiguration();
}
}
Aggregations