public class SpringHibernateWorkflowFactory extends AbstractWorkflowFactory
properties
Constructor and Description |
---|
SpringHibernateWorkflowFactory() |
Modifier and Type | Method and Description |
---|---|
void |
createWorkflow(String name) |
static void |
forceReload() |
Object |
getLayout(String workflowName) |
String |
getName() |
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 |
initDone()
Invoked after the properties of the factory have been set.
|
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) |
void |
setReload(boolean reload) |
void |
setSessionFactory(SessionFactory sessionFactory) |
void |
setValidate(boolean validate) |
getProperties, getWorkflow, init
public boolean isModifiable(String name)
public String getName()
public void setReload(boolean reload)
public void setSessionFactory(SessionFactory sessionFactory)
public void setValidate(boolean validate)
public WorkflowDescriptor getWorkflow(String name, boolean validate) throws FactoryException
WorkflowFactory
name
- The name of the workflow to get.FactoryException
- if the specified workflow name does not exist or cannot be located.public String[] getWorkflowNames() throws FactoryException
WorkflowFactory
FactoryException
- if the factory cannot determine the names of the workflows it has.public void createWorkflow(String name)
public static void forceReload()
public void initDone() throws FactoryException
AbstractWorkflowFactory
initDone
in interface WorkflowFactory
initDone
in class AbstractWorkflowFactory
FactoryException
- if there was an error during initialization.public boolean removeWorkflow(String name) throws FactoryException
FactoryException
public void save()
public boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException
WorkflowFactory
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.