// If the workflow configuration mode has changed then reconfigure
// the workflows-only if the server is running. If the server is not
// running (ie. the server is starting up) simply update the workflow
// configuration mode as the workflow configuration is processed
// elsewhere.
WorkflowConfigurationMode oldMode =
DirectoryServer.getWorkflowConfigurationMode();
WorkflowConfigurationMode newMode =
globalConfig.getWorkflowConfigurationMode();
if (DirectoryServer.isRunning())
{
DirectoryServer.reconfigureWorkflows(oldMode, newMode);
}