Search in sources :

Example 6 with HumanTaskServerConfiguration

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();
    }
}
Also used : HumanTaskServerConfiguration(org.wso2.carbon.humantask.core.configuration.HumanTaskServerConfiguration) File(java.io.File)

Aggregations

HumanTaskServerConfiguration (org.wso2.carbon.humantask.core.configuration.HumanTaskServerConfiguration)5 SimpleQueryCriteria (org.wso2.carbon.humantask.core.dao.SimpleQueryCriteria)2 File (java.io.File)1 SocketException (java.net.SocketException)1 LinkedHashMap (java.util.LinkedHashMap)1 EndpointReference (org.apache.axis2.addressing.EndpointReference)1 OperationClient (org.apache.axis2.client.OperationClient)1 Options (org.apache.axis2.client.Options)1 ConfigurationContext (org.apache.axis2.context.ConfigurationContext)1 MessageContext (org.apache.axis2.context.MessageContext)1 HttpTransportProperties (org.apache.axis2.transport.http.HttpTransportProperties)1 RemovableTaskCleanupJob (org.wso2.carbon.humantask.cleanup.scheduler.ntask.RemovableTaskCleanupJob)1 HumanTaskCoordinationException (org.wso2.carbon.humantask.coordination.module.HumanTaskCoordinationException)1 HumanTaskDAOConnection (org.wso2.carbon.humantask.core.dao.HumanTaskDAOConnection)1 HumanTaskServerException (org.wso2.carbon.humantask.core.engine.HumanTaskServerException)1 HumanTaskRuntimeException (org.wso2.carbon.humantask.core.engine.runtime.api.HumanTaskRuntimeException)1 TaskException (org.wso2.carbon.ntask.common.TaskException)1 TaskInfo (org.wso2.carbon.ntask.core.TaskInfo)1 TaskManager (org.wso2.carbon.ntask.core.TaskManager)1