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()
WGWorkflowEnginegetDescription in interface WGWorkflowEnginepublic java.lang.String getName()
WGWorkflowEnginegetName in interface WGWorkflowEnginepublic WGWorkflow getWorkflow(WGContent content)
WGWorkflowEnginegetWorkflow in interface WGWorkflowEnginepublic java.lang.Object createWorkflowDefinition(java.lang.String name)
WGWorkflowEnginecreateWorkflowDefinition in interface WGWorkflowEnginename - Name of the workflow definition.public java.util.Map getWorkflowDefinitions()
WGWorkflowEnginegetWorkflowDefinitions in interface WGWorkflowEnginepublic void init(WGDatabase db)
WGWorkflowEngineinit in interface WGWorkflowEnginedb - The database that this engine will be bound topublic boolean saveWorkflowDefinition(java.lang.Object wfDef)
WGWorkflowEnginesaveWorkflowDefinition in interface WGWorkflowEnginewfDef - The workflow definition object to savepublic boolean removeWorkflowDefinition(java.lang.Object wfDef)
WGWorkflowEngineremoveWorkflowDefinition in interface WGWorkflowEnginewfDef - The workflow definition to deletepublic java.lang.Class getWorkflowDefinitionType()
WGWorkflowEnginegetWorkflowDefinitionType in interface WGWorkflowEngine