public interface WorkflowFactory
Modifier and Type | Method and Description |
---|---|
void |
createWorkflow(String name) |
Object |
getLayout(String workflowName) |
String |
getName() |
Properties |
getProperties() |
WorkflowDescriptor |
getWorkflow(String name) |
WorkflowDescriptor |
getWorkflow(String name,
boolean validate)
Get a workflow descriptor given a workflow name.
|
String[] |
getWorkflowNames()
Get all workflow names in the current factory
|
void |
init(Properties p) |
void |
initDone() |
boolean |
isModifiable(String name) |
boolean |
removeWorkflow(String name) |
void |
renameWorkflow(String oldName,
String newName) |
void |
save() |
boolean |
saveWorkflow(String name,
WorkflowDescriptor descriptor,
boolean replace)
Save the workflow.
|
void |
setLayout(String workflowName,
Object layout) |
boolean isModifiable(String name)
String getName()
Properties getProperties()
WorkflowDescriptor getWorkflow(String name) throws FactoryException
FactoryException
WorkflowDescriptor getWorkflow(String name, boolean validate) throws FactoryException
name
- The name of the workflow to get.FactoryException
- if the specified workflow name does not exist or cannot be located.String[] getWorkflowNames() throws FactoryException
FactoryException
- if the factory cannot determine the names of the workflows it has.void createWorkflow(String name)
void init(Properties p)
void initDone() throws FactoryException
FactoryException
boolean removeWorkflow(String name) throws FactoryException
FactoryException
void save()
boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException
WorkflowDescriptor.validate()
method. Invalid workflows will
be saved without being checked.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.FactoryException
- if there was an error saving the workflowInvalidWorkflowDescriptorException
- if the descriptor specified is invalidCopyright © 2021 catworkx GmbH. All rights reserved.