. Workflow task parameters can now be configured directly from the Submit Dialog screen

- Workflows that have not been configured at all can now be configured
 - Workflows that are already configured can be modified by the user for the submission
 - An error appears informing the user before submission that they need to configure a workflow if it has not been configured at all 
. Refactoring of workflow task properties create/edit to use common interface across WCM screens
. Fix to issue where previously selected people in the workflow task properties screen would disappear from the list

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4679 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-12-21 13:14:48 +00:00
parent 97ff757e8b
commit e245c08794
11 changed files with 358 additions and 69 deletions

View File

@@ -113,7 +113,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
protected List<WorkflowWrapper> workflows = null;
/** Current workflow for dialog context */
protected WorkflowWrapper actionWorkflow = null;
protected WorkflowConfiguration actionWorkflow = null;
// ------------------------------------------------------------------------------
@@ -578,13 +578,13 @@ public class CreateWebsiteWizard extends BaseWizardBean
*/
public void setupWorkflowAction(ActionEvent event)
{
setActionWorkflow( (WorkflowWrapper)this.workflowsDataModel.getRowData() );
setActionWorkflow( (WorkflowConfiguration)this.workflowsDataModel.getRowData() );
}
/**
* @return Returns the action Workflow for dialog context
*/
public WorkflowWrapper getActionWorkflow()
public WorkflowConfiguration getActionWorkflow()
{
return this.actionWorkflow;
}
@@ -592,7 +592,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
/**
* @param actionWorkflow The action Workflow to set for dialog context
*/
public void setActionWorkflow(WorkflowWrapper actionWorkflow)
public void setActionWorkflow(WorkflowConfiguration actionWorkflow)
{
this.actionWorkflow = actionWorkflow;
}
@@ -736,7 +736,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
/**
* Wrapper class for a configurable template Form instance
*/
public class FormWrapper
public static class FormWrapper
{
private Form form;
private String title;
@@ -940,7 +940,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
/**
* Class to represent a single configured Workflow instance
*/
public static class WorkflowWrapper
public static class WorkflowWrapper implements WorkflowConfiguration
{
private String name;
private String title;
@@ -956,7 +956,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
this.description = description;
}
public WorkflowWrapper(String name, String title, String description, String filenamePattern)
public WorkflowWrapper(String name, String title, String description, String filenamePattern)
{
this.name = name;
this.title = title;