Package org.dspace.xmlworkflow.state
Class Workflow
- java.lang.Object
-
- org.dspace.xmlworkflow.state.Workflow
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class Workflow extends Object implements org.springframework.beans.factory.BeanNameAware
Class that contains all the steps and roles involved in a certain configured workflow- Author:
- Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
-
Constructor Summary
Constructors Constructor Description Workflow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StepgetFirstStep()StringgetID()StepgetNextStep(Context context, XmlWorkflowItem wfi, Step currentStep, int outcome)Map<String,Role>getRoles()Get the roles that are used in this workflowStepgetStep(String stepID)List<Step>getSteps()Get the steps that need to be executed in this workflow before the item is archivedvoidsetBeanName(String s)voidsetFirstStep(Step firstStep)voidsetSteps(List<Step> steps)Set the steps that need to be executed in this workflow before the item is archived
-
-
-
Method Detail
-
getFirstStep
public Step getFirstStep()
-
getID
public String getID()
-
getStep
public Step getStep(String stepID) throws WorkflowConfigurationException
- Throws:
WorkflowConfigurationException
-
getNextStep
public Step getNextStep(Context context, XmlWorkflowItem wfi, Step currentStep, int outcome) throws WorkflowConfigurationException, SQLException
-
setFirstStep
public void setFirstStep(Step firstStep)
-
getSteps
public List<Step> getSteps()
Get the steps that need to be executed in this workflow before the item is archived- Returns:
- the workflow steps
-
setSteps
public void setSteps(List<Step> steps)
Set the steps that need to be executed in this workflow before the item is archived- Parameters:
steps- the workflow steps
-
getRoles
public Map<String,Role> getRoles()
Get the roles that are used in this workflow- Returns:
- a map containing the roles, the role name will the key, the role itself the value
-
setBeanName
public void setBeanName(String s)
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
-