public class StartWorkflowWizard extends BaseWizardBean
| Modifier and Type | Field and Description |
|---|---|
protected List<javax.faces.model.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<Node> |
resources |
protected String |
selectedWorkflow |
protected Node |
startTaskNode |
browseBean, isFinished, navigator, parameters| Constructor and Description |
|---|
StartWorkflowWizard() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPackageItems(javax.faces.event.ActionEvent event)
Adds items to the workflow package
|
String |
back()
Called when the back button is pressed by the user
|
void |
cancelAddPackageItems(javax.faces.event.ActionEvent event)
Cancels the adding of an item to the workflow package
|
protected String |
finishImpl(javax.faces.context.FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
protected org.alfresco.repo.policy.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
|
org.alfresco.service.cmr.invitation.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
|
List<Node> |
getResources()
Returns a list of resources associated with this task
i.e.
|
String |
getSelectedWorkflow()
Returns the workflow selected by the user
|
List<javax.faces.model.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,org.alfresco.service.cmr.workflow.WorkflowDefinition> |
getWorkflows() |
protected org.alfresco.service.cmr.workflow.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(javax.faces.event.ActionEvent event)
Prepares the dialog to allow the user to add an item to the workflow package
|
void |
removePackageItem(javax.faces.event.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(org.alfresco.service.cmr.invitation.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(org.alfresco.repo.policy.BehaviourFilter policyBehaviourFilter) |
void |
setSelectedWorkflow(String selectedWorkflow)
Sets the selected workflow
|
void |
setUnprotectedNodeService(org.alfresco.service.cmr.repository.NodeService unprotectedNodeService) |
void |
setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
Sets the workflow service to use
|
buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitlecancel, 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, setSearchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getFinishButtonDisabled, getMoreActionsConfigId, isFinishedprotected String selectedWorkflow
protected String previouslySelectedWorkflow
protected transient List<javax.faces.model.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(org.alfresco.repo.policy.BehaviourFilter policyBehaviourFilter)
protected org.alfresco.repo.policy.BehaviourFilter getBehaviourFilter()
protected Map<String,org.alfresco.service.cmr.workflow.WorkflowDefinition> getWorkflows()
public void init(Map<String,String> parameters)
IDialogBeaninit in interface IDialogBeaninit in class BaseDialogBeanparameters - Map of parameters for the dialogpublic void restored()
IDialogBeanrestored in interface IDialogBeanrestored in class BaseDialogBeanprotected String finishImpl(javax.faces.context.FacesContext context, String outcome) throws Exception
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomeExceptionpublic String next()
IWizardBeannext in interface IWizardBeannext in class BaseWizardBeanpublic String back()
IWizardBeanback in interface IWizardBeanback in class BaseWizardBeanpublic boolean getNextButtonDisabled()
IWizardBeangetNextButtonDisabled in interface IWizardBeangetNextButtonDisabled in class BaseWizardBeanpublic String getContainerTitle()
IDialogBeanIf this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle in interface IDialogBeangetContainerTitle in class BaseDialogBeanpublic void prepareForAdd(javax.faces.event.ActionEvent event)
event - The eventpublic void cancelAddPackageItems(javax.faces.event.ActionEvent event)
event - The eventpublic void addPackageItems(javax.faces.event.ActionEvent event)
event - The eventpublic void removePackageItem(javax.faces.event.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<javax.faces.model.SelectItem> getStartableWorkflows()
public String getWorkflowDefinitionImageUrl()
public List<Node> getResources()
public void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
workflowService - WorkflowService instanceprotected org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()
protected void resetRichList()
protected List<String> getExcludedWorkflows()
protected List<String> getInvitationServiceWorkflowNames()
public void setInvitationService(org.alfresco.service.cmr.invitation.InvitationService invitationService)
public org.alfresco.service.cmr.invitation.InvitationService getInvitationService()
Copyright © 2005–2018 Alfresco Software. All rights reserved.