public class SpringConfiguration extends Object implements Configuration
Constructor and Description |
---|
SpringConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getPersistence()
Get the fully qualified class name of the persistence store.
|
Map |
getPersistenceArgs()
Get the persistence args for the persistence store.
|
VariableResolver |
getVariableResolver()
Return the resolver to use for all variables specified in scripts
|
WorkflowDescriptor |
getWorkflow(String name)
Get the named workflow descriptor.
|
String[] |
getWorkflowNames()
Get a list of all available workflow descriptor names.
|
WorkflowStore |
getWorkflowStore() |
boolean |
isInitialized() |
boolean |
isModifiable(String name)
Check if a particular workflow can be modified or not.
|
void |
load(URL url)
Load the specified configuration file.
|
boolean |
removeWorkflow(String workflow)
Remove the specified workflow.
|
boolean |
saveWorkflow(String name,
WorkflowDescriptor descriptor,
boolean replace) |
void |
setFactory(WorkflowFactory factory) |
void |
setStore(WorkflowStore store) |
void |
setVariableResolver(VariableResolver variableResolver) |
public void setFactory(WorkflowFactory factory)
public boolean isInitialized()
isInitialized
in interface Configuration
Configuration.load(java.net.URL)
will be called.public boolean isModifiable(String name)
Configuration
isModifiable
in interface Configuration
name
- The workflow name.public String getPersistence()
Configuration
getPersistence
in interface Configuration
public Map getPersistenceArgs()
Configuration
getPersistenceArgs
in interface Configuration
public void setStore(WorkflowStore store)
public void setVariableResolver(VariableResolver variableResolver)
public VariableResolver getVariableResolver()
Configuration
getVariableResolver
in interface Configuration
public WorkflowDescriptor getWorkflow(String name) throws FactoryException
Configuration
getWorkflow
in interface Configuration
name
- the workflow nameFactoryException
- if there was an error looking up the descriptor or if it could not be found.public String[] getWorkflowNames() throws FactoryException
Configuration
getWorkflowNames
in interface Configuration
FactoryException
- if the underlying factory does not support this method
or if there was an error looking up workflow names.public WorkflowStore getWorkflowStore() throws StoreException
getWorkflowStore
in interface Configuration
StoreException
public void load(URL url) throws FactoryException
Configuration
load
in interface Configuration
url
- url to the configuration file.FactoryException
public boolean removeWorkflow(String workflow) throws FactoryException
Configuration
removeWorkflow
in interface Configuration
workflow
- The workflow name of the workflow to remove.FactoryException
- If the underlying workflow factory has an error removing the workflow,
or if it does not support the removal of workflows.public boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException
saveWorkflow
in interface Configuration
FactoryException
Copyright © 2021 catworkx GmbH. All rights reserved.