public class Step extends Object
Constructor and Description |
---|
Step(String id,
Workflow workflow,
Role role,
UserSelectionActionConfig userSelectionMethod,
List<String> actionConfigsList,
Map<Integer,String> outcomes,
int requiredUsers) |
Modifier and Type | Method and Description |
---|---|
WorkflowActionConfig |
getActionConfig(String actionID) |
String |
getId() |
WorkflowActionConfig |
getNextAction(WorkflowActionConfig currentAction) |
String |
getNextStepID(int outcome) |
int |
getRequiredUsers() |
Role |
getRole() |
UserSelectionActionConfig |
getUserSelectionMethod() |
Workflow |
getWorkflow() |
boolean |
hasUI()
Boolean that returns whether or not the actions in this step have a ui
|
boolean |
isFinished(Context c,
XmlWorkflowItem wfi)
Check if enough users have finished this step for it to continue
|
boolean |
isValidStep(Context context,
XmlWorkflowItem wfi) |
public WorkflowActionConfig getActionConfig(String actionID)
public boolean hasUI()
public String getNextStepID(int outcome) throws WorkflowException, IOException, WorkflowConfigurationException, SQLException
public boolean isValidStep(Context context, XmlWorkflowItem wfi) throws WorkflowConfigurationException, SQLException
public UserSelectionActionConfig getUserSelectionMethod()
public WorkflowActionConfig getNextAction(WorkflowActionConfig currentAction)
public String getId()
public Workflow getWorkflow()
public boolean isFinished(Context c, XmlWorkflowItem wfi) throws SQLException
wfi
- the workflow item to checkSQLException
public int getRequiredUsers()
public Role getRole()
Copyright © 2016 DuraSpace. All Rights Reserved.