org.dspace.xmlworkflow.state
Class Workflow

java.lang.Object
  extended by org.dspace.xmlworkflow.state.Workflow

public class Workflow
extends Object

Class that contains all the steps & 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
Workflow(String workflowID, LinkedHashMap<String,Role> roles)
           
 
Method Summary
 Step getFirstStep()
           
 String getID()
           
 Step getNextStep(Context context, XmlWorkflowItem wfi, Step currentStep, int outcome)
           
 HashMap<String,Role> getRoles()
           
 Step getStep(String stepID)
           
 void setFirstStep(Step firstStep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Workflow

public Workflow(String workflowID,
                LinkedHashMap<String,Role> roles)
Method Detail

getFirstStep

public Step getFirstStep()

getID

public String getID()

getStep

public Step getStep(String stepID)
             throws WorkflowConfigurationException,
                    IOException
Throws:
WorkflowConfigurationException
IOException

getNextStep

public Step getNextStep(Context context,
                        XmlWorkflowItem wfi,
                        Step currentStep,
                        int outcome)
                 throws IOException,
                        WorkflowConfigurationException,
                        WorkflowException,
                        SQLException
Throws:
IOException
WorkflowConfigurationException
WorkflowException
SQLException

setFirstStep

public void setFirstStep(Step firstStep)

getRoles

public HashMap<String,Role> getRoles()


Copyright © 2012 DuraSpace. All Rights Reserved.