public interface WGWorkflowEngine
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createWorkflowDefinition(java.lang.String name)
Create a workflow definition.
|
java.lang.String |
getDescription()
Returns a description of the workflow engine
|
java.lang.String |
getName()
Returns the name of the workflow engine
|
WGWorkflow |
getWorkflow(WGContent content)
Creates a workflow object for the given content
|
java.util.Map |
getWorkflowDefinitions()
Returns a map of the stored workflow definitions, keyed by their names.
|
java.lang.Class |
getWorkflowDefinitionType()
Returns the class that is used to represent workflow definitions in this engine
|
void |
init(WGDatabase db)
Called when the engine object is created to do initial operations.
|
boolean |
removeWorkflowDefinition(java.lang.Object wfDef)
Deletes a workflow definition.
|
boolean |
saveWorkflowDefinition(java.lang.Object wfDef)
Saves the state of a workflow definition object
|
void init(WGDatabase db) throws WGAPIException
db
- The database that this engine will be bound toWGWorkflowException
WGBackendException
WGConfigurationException
WGAPIException
WGWorkflow getWorkflow(WGContent content) throws WGAPIException
content
- WGAPIException
java.lang.String getName()
java.lang.String getDescription()
java.util.Map getWorkflowDefinitions()
java.lang.Object createWorkflowDefinition(java.lang.String name) throws WGAPIException
name
- Name of the workflow definition.WGWorkflowException
WGAuthorisationException
WGBackendException
WGAPIException
boolean saveWorkflowDefinition(java.lang.Object wfDef) throws WGAPIException
wfDef
- The workflow definition object to saveWGWorkflowException
WGAPIException
boolean removeWorkflowDefinition(java.lang.Object wfDef) throws WGAPIException
wfDef
- The workflow definition to deleteWGWorkflowException
WGBackendException
WGAPIException
java.lang.Class getWorkflowDefinitionType()