public class StartWorkflowWizard extends BaseWizardBean
Modifier and Type | Field and Description |
---|---|
protected List<SelectItem> |
availableWorkflows |
protected List<String> |
excludedWorkflows |
protected List<String> |
invitationWorkflows |
protected boolean |
isItemBeingAdded |
protected String[] |
itemsToAdd |
protected boolean |
nextButtonDisabled |
protected UIRichList |
packageItemsRichList |
protected List<String> |
packageItemsToAdd |
protected String |
previouslySelectedWorkflow |
protected List<String> |
publishingWorkflows |
protected List<Node> |
resources |
protected String |
selectedWorkflow |
protected Node |
startTaskNode |
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
StartWorkflowWizard() |
Modifier and Type | Method and Description |
---|---|
void |
addPackageItems(ActionEvent event)
Adds items to the workflow package
|
String |
back()
Called when the back button is pressed by the user
|
void |
cancelAddPackageItems(ActionEvent event)
Cancels the adding of an item to the workflow package
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
protected BehaviourFilter |
getBehaviourFilter() |
String |
getContainerTitle()
Returns the title to be used for the dialog
|
protected List<String> |
getExcludedWorkflows()
Get the Names of globally excluded workflow-names.
|
boolean |
getHasStartableWorkflows()
Determines whether there are any workflows to start
|
InvitationService |
getInvitationService() |
protected List<String> |
getInvitationServiceWorkflowNames()
Get the Names of the Invitation Service Workflows
|
String[] |
getItemsToAdd()
Returns a String array of NodeRef's that are being added to the workflow package
|
boolean |
getNextButtonDisabled()
Determines whether the next button on the wizard should be disabled
|
String |
getPackageActionGroup()
Returns the action group the current task uses for the workflow package
|
String |
getPackageItemActionGroup()
Returns the action group the current task uses for each workflow package item
|
UIRichList |
getPackageItemsRichList()
Returns the rich list being used for the workflow package items
|
protected List<String> |
getPublishingWorkflowNames()
Get the names of the publishing workflows
|
List<Node> |
getResources()
Returns a list of resources associated with this task
i.e.
|
String |
getSelectedWorkflow()
Returns the workflow selected by the user
|
List<SelectItem> |
getStartableWorkflows()
Returns a list of workflows that can be started.
|
String |
getSummary() |
Node |
getTaskMetadataNode()
Returns the Node representing the start task metadata required
|
protected org.alfresco.service.cmr.repository.NodeService |
getUnprotectedNodeService() |
String |
getWorkflowDefinitionImageUrl()
Returns the URL to the Workflow Definition Image of the current task
|
protected Map<String,WorkflowDefinition> |
getWorkflows() |
protected WorkflowService |
getWorkflowService() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
boolean |
isItemBeingAdded()
Determines whether an item is currently being added to the workflow package
|
String |
next()
Called when the next button is pressed by the user
|
void |
prepareForAdd(ActionEvent event)
Prepares the dialog to allow the user to add an item to the workflow package
|
void |
removePackageItem(ActionEvent event)
Removes an item from the workflow package
|
protected void |
resetRichList()
Resets the rich list
|
void |
restored()
Called when the dialog is restored after a nested dialog is closed
|
void |
setInvitationService(InvitationService invitationService) |
void |
setItemsToAdd(String[] itemsToAdd)
Sets the NodeRef's to add as items to the workflow package
|
void |
setPackageItemsRichList(UIRichList richList)
Sets the rich list being used for the workflow package items
|
void |
setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter) |
void |
setSelectedWorkflow(String selectedWorkflow)
Sets the selected workflow
|
void |
setUnprotectedNodeService(org.alfresco.service.cmr.repository.NodeService unprotectedNodeService) |
void |
setWorkflowService(WorkflowService workflowService)
Sets the workflow service to use
|
buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getFinishButtonDisabled, getMoreActionsConfigId, isFinished
protected String selectedWorkflow
protected String previouslySelectedWorkflow
protected transient List<SelectItem> availableWorkflows
protected Node startTaskNode
protected UIRichList packageItemsRichList
protected String[] itemsToAdd
protected boolean isItemBeingAdded
protected boolean nextButtonDisabled
public void setUnprotectedNodeService(org.alfresco.service.cmr.repository.NodeService unprotectedNodeService)
protected org.alfresco.service.cmr.repository.NodeService getUnprotectedNodeService()
public void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
protected BehaviourFilter getBehaviourFilter()
protected Map<String,WorkflowDefinition> getWorkflows()
public void init(Map<String,String> parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic void restored()
IDialogBean
restored
in interface IDialogBean
restored
in class BaseDialogBean
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public String next()
IWizardBean
next
in interface IWizardBean
next
in class BaseWizardBean
public String back()
IWizardBean
back
in interface IWizardBean
back
in class BaseWizardBean
public boolean getNextButtonDisabled()
IWizardBean
getNextButtonDisabled
in interface IWizardBean
getNextButtonDisabled
in class BaseWizardBean
public String getContainerTitle()
IDialogBean
If this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle
in interface IDialogBean
getContainerTitle
in class BaseDialogBean
public void prepareForAdd(ActionEvent event)
event
- The eventpublic void cancelAddPackageItems(ActionEvent event)
event
- The eventpublic void addPackageItems(ActionEvent event)
event
- The eventpublic void removePackageItem(ActionEvent event)
event
- The event containing a reference to the item to removepublic String[] getItemsToAdd()
public void setItemsToAdd(String[] itemsToAdd)
itemsToAdd
- NodeRef's to add to the workflow packagepublic boolean isItemBeingAdded()
public void setPackageItemsRichList(UIRichList richList)
richList
- The rich list instancepublic UIRichList getPackageItemsRichList()
public String getSelectedWorkflow()
public void setSelectedWorkflow(String selectedWorkflow)
selectedWorkflow
- The workflow selectedpublic Node getTaskMetadataNode()
public String getPackageActionGroup()
public String getPackageItemActionGroup()
public String getSummary()
public boolean getHasStartableWorkflows()
public List<SelectItem> getStartableWorkflows()
public String getWorkflowDefinitionImageUrl()
public List<Node> getResources()
public void setWorkflowService(WorkflowService workflowService)
workflowService
- WorkflowService instanceprotected WorkflowService getWorkflowService()
protected void resetRichList()
protected List<String> getExcludedWorkflows()
protected List<String> getInvitationServiceWorkflowNames()
protected List<String> getPublishingWorkflowNames()
public void setInvitationService(InvitationService invitationService)
public InvitationService getInvitationService()
Copyright © 2005–2017 Alfresco Software. All rights reserved.