|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.workflow.spi.memory.MemoryWorkflowStore
com.opensymphony.workflow.spi.memory.SerializableWorkflowStore
public class SerializableWorkflowStore
Simple flat file implementation. Following properties are required:
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
SerializableWorkflowStore()
|
|
| Method Summary | |
|---|---|
Step |
createCurrentStep(long entryId,
int stepId,
String owner,
Date startDate,
Date dueDate,
String status,
long[] previousIds)
Persists a step with the given parameters. |
WorkflowEntry |
createEntry(String workflowName)
Persists a new workflow entry that has not been initialized. |
List |
findCurrentSteps(long entryId)
Returns a list of all current steps for the given workflow instance ID. |
WorkflowEntry |
findEntry(long entryId)
Pulls up the workflow entry data for the entry ID given. |
List |
findHistorySteps(long entryId)
Returns a list of all steps that are finished for the given workflow instance ID. |
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(long entryId)
Returns a PropertySet that is associated with this workflow instance ID. |
static String |
getStoreFile()
|
void |
init(Map props)
Called once when the store is first created. |
Step |
markFinished(Step step,
int actionId,
Date finishDate,
String status,
String caller)
Mark the specified step as finished. |
void |
moveToHistory(Step step)
Called when a step is finished and can be moved to workflow history. |
static void |
setStoreFile(String storeFile)
|
| Methods inherited from class com.opensymphony.workflow.spi.memory.MemoryWorkflowStore |
|---|
query, query, reset, setEntryState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public SerializableWorkflowStore()
| Method Detail |
|---|
public com.opensymphony.module.propertyset.PropertySet getPropertySet(long entryId)
WorkflowStore
getPropertySet in interface WorkflowStoregetPropertySet in class MemoryWorkflowStoreentryId - The workflow instance id.
public static void setStoreFile(String storeFile)
public static String getStoreFile()
public Step createCurrentStep(long entryId,
int stepId,
String owner,
Date startDate,
Date dueDate,
String status,
long[] previousIds)
WorkflowStore
createCurrentStep in interface WorkflowStorecreateCurrentStep in class MemoryWorkflowStoreentryId - The workflow instance id.stepId - the ID of the workflow step associated with this new
Step (not to be confused with the step primary key)owner - the owner of the stepstartDate - the start date of the stepstatus - the status of the steppreviousIds - the previous step IDs
public WorkflowEntry createEntry(String workflowName)
WorkflowStore
createEntry in interface WorkflowStorecreateEntry in class MemoryWorkflowStoreworkflowName - the workflow name that this entry is an instance of
public List findCurrentSteps(long entryId)
WorkflowStore
findCurrentSteps in interface WorkflowStorefindCurrentSteps in class MemoryWorkflowStoreentryId - The workflow instance id.
Steppublic WorkflowEntry findEntry(long entryId)
WorkflowStore
findEntry in interface WorkflowStorefindEntry in class MemoryWorkflowStoreentryId - The workflow instance id.
public List findHistorySteps(long entryId)
WorkflowStore
findHistorySteps in interface WorkflowStorefindHistorySteps in class MemoryWorkflowStoreentryId - The workflow instance id.
Steppublic void init(Map props)
WorkflowStore
init in interface WorkflowStoreinit in class MemoryWorkflowStoreprops - properties set in osworkflow.xml
public Step markFinished(Step step,
int actionId,
Date finishDate,
String status,
String caller)
WorkflowStore
markFinished in interface WorkflowStoremarkFinished in class MemoryWorkflowStorestep - the step to finish.actionId - The action that caused the step to finish.finishDate - the date when the step was finished.status - The status to set the finished step to.caller - The caller that caused the step to finish.
public void moveToHistory(Step step)
WorkflowStore
moveToHistory in interface WorkflowStoremoveToHistory in class MemoryWorkflowStorestep - the step to be moved to workflow history
|
OpenSymphony Workflow Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||