Package com.opensymphony.workflow.loader
Interface WorkflowFactory
- All Known Implementing Classes:
AbstractWorkflowFactory,HTTPWorkflowFactory,JDBCWorkflowFactory,JiraWorkflowFactory,URLWorkflowFactory,XMLWorkflowFactory
public interface WorkflowFactory
- Author:
- hani Date: Feb 15, 2005 Time: 11:18:48 PM
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateWorkflow(String name) getName()getWorkflow(String name) getWorkflow(String name, boolean validate) Get a workflow descriptor given a workflow name.String[]Get all workflow names in the current factoryvoidinit(Properties p) voidinitDone()booleanisModifiable(String name) booleanremoveWorkflow(String name) voidrenameWorkflow(String oldName, String newName) voidsave()booleansaveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) Save the workflow.void
-
Method Details
-
setLayout
-
getLayout
-
isModifiable
-
getName
String getName() -
getProperties
Properties getProperties() -
getWorkflow
- Throws:
FactoryException
-
getWorkflow
Get a workflow descriptor given a workflow name.- Parameters:
name- The name of the workflow to get.- Returns:
- The descriptor for the specified workflow.
- Throws:
FactoryException- if the specified workflow name does not exist or cannot be located.
-
getWorkflowNames
Get all workflow names in the current factory- Returns:
- An array of all workflow names
- Throws:
FactoryException- if the factory cannot determine the names of the workflows it has.
-
createWorkflow
-
init
-
initDone
- Throws:
FactoryException
-
removeWorkflow
- Throws:
FactoryException
-
renameWorkflow
-
save
void save() -
saveWorkflow
boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException Save the workflow. Is it the responsibility of the caller to ensure that the workflow is valid, through theWorkflowDescriptor.validate()method. Invalid workflows will be saved without being checked.- Parameters:
name- The name of the workflow to same.descriptor- The descriptor for the workflow.replace- true if an existing workflow with this name should be replaced.- Returns:
- true if the workflow was saved.
- Throws:
FactoryException- if there was an error saving the workflowInvalidWorkflowDescriptorException- if the descriptor specified is invalid
-