mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user