public class WGDefaultWorkflowEngine extends java.lang.Object implements WGWorkflowEngine
Constructor and Description |
---|
WGDefaultWorkflowEngine() |
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
|
public java.lang.String getDescription()
WGWorkflowEngine
getDescription
in interface WGWorkflowEngine
public java.lang.String getName()
WGWorkflowEngine
getName
in interface WGWorkflowEngine
public WGWorkflow getWorkflow(WGContent content)
WGWorkflowEngine
getWorkflow
in interface WGWorkflowEngine
public java.lang.Object createWorkflowDefinition(java.lang.String name)
WGWorkflowEngine
createWorkflowDefinition
in interface WGWorkflowEngine
name
- Name of the workflow definition.public java.util.Map getWorkflowDefinitions()
WGWorkflowEngine
getWorkflowDefinitions
in interface WGWorkflowEngine
public void init(WGDatabase db)
WGWorkflowEngine
init
in interface WGWorkflowEngine
db
- The database that this engine will be bound topublic boolean saveWorkflowDefinition(java.lang.Object wfDef)
WGWorkflowEngine
saveWorkflowDefinition
in interface WGWorkflowEngine
wfDef
- The workflow definition object to savepublic boolean removeWorkflowDefinition(java.lang.Object wfDef)
WGWorkflowEngine
removeWorkflowDefinition
in interface WGWorkflowEngine
wfDef
- The workflow definition to deletepublic java.lang.Class getWorkflowDefinitionType()
WGWorkflowEngine
getWorkflowDefinitionType
in interface WGWorkflowEngine