First cut of content expiration support

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5674 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2007-05-14 19:40:10 +00:00
parent 5564310bf2
commit bd54cd2401
21 changed files with 777 additions and 48 deletions

View File

@@ -675,6 +675,7 @@ public class StartWorkflowWizard extends BaseWizardBean
ConfigElement config = Application.getConfigService(fc).getGlobalConfig().getConfigElement("wcm");
if (config != null)
{
// get the main WCM workflows
ConfigElement workflowConfig = config.getChild("workflows");
if (workflowConfig != null)
{
@@ -691,6 +692,23 @@ public class StartWorkflowWizard extends BaseWizardBean
if (logger.isWarnEnabled())
logger.warn("WARNING: Unable to find WCM 'workflows' config element definition.");
}
// get the admin WCM workflows
ConfigElement adminWorkflowConfig = config.getChild("admin-workflows");
if (adminWorkflowConfig != null)
{
StringTokenizer t = new StringTokenizer(adminWorkflowConfig.getValue().trim(), ", ");
while (t.hasMoreTokens())
{
String wfName = "jbpm$" + t.nextToken();
wcmWorkflows.put(wfName, wfName);
}
}
else
{
if (logger.isWarnEnabled())
logger.warn("WARNING: Unable to find WCM 'admin-workflows' config element definition.");
}
}
else
{