. List of available workflows for WCM wizards now come from configured list

- added new wcm specific client config file: web-client-config-wcm.xml
 - only the workflows as defined in the WCM client config file are now shown in the various wizards
 - the upside is that workflows not compatible with AVM objects are no longer shown
 - the downside is that when new workflows are deployed in the system they must be added to the config file

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4725 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-01-04 14:07:57 +00:00
parent fdd4f2ffa7
commit 315219c59b
6 changed files with 101 additions and 16 deletions

View File

@@ -643,9 +643,8 @@ public class CreateWebsiteWizard extends BaseWizardBean
*/
public List<UIListItem> getWorkflowList()
{
// TODO: add list of workflows from config
// @see org.alfresco.web.wcm.FormDetailsDialog#getWorkflowList()
List<WorkflowDefinition> workflowDefs = this.workflowService.getDefinitions();
// get list of workflows from config definitions
List<WorkflowDefinition> workflowDefs = AVMWorkflowUtil.getConfiguredWorkflows();
List<UIListItem> items = new ArrayList<UIListItem>(workflowDefs.size());
for (WorkflowDefinition workflowDef : workflowDefs)
{