public class MemoryWorkflowStore extends Object implements WorkflowStore
Constructor and Description |
---|
MemoryWorkflowStore() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
List |
query(WorkflowExpressionQuery query) |
List |
query(WorkflowQuery query) |
static void |
reset()
Reset the MemoryWorkflowStore so it doesn't have any information.
|
void |
setEntryState(long entryId,
int state)
Set the state of the workflow instance.
|
public void setEntryState(long entryId, int state) throws StoreException
WorkflowStore
setEntryState
in interface WorkflowStore
entryId
- The workflow instance id.state
- The state to move the workflow instance to.StoreException
public com.opensymphony.module.propertyset.PropertySet getPropertySet(long entryId)
WorkflowStore
getPropertySet
in interface WorkflowStore
entryId
- The workflow instance id.public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds)
WorkflowStore
createCurrentStep
in interface WorkflowStore
entryId
- 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 IDspublic static void reset()
public WorkflowEntry createEntry(String workflowName)
WorkflowStore
createEntry
in interface WorkflowStore
workflowName
- the workflow name that this entry is an instance ofpublic List findCurrentSteps(long entryId)
WorkflowStore
findCurrentSteps
in interface WorkflowStore
entryId
- The workflow instance id.Step
public WorkflowEntry findEntry(long entryId)
WorkflowStore
findEntry
in interface WorkflowStore
entryId
- The workflow instance id.public List findHistorySteps(long entryId)
WorkflowStore
findHistorySteps
in interface WorkflowStore
entryId
- The workflow instance id.Step
public void init(Map props)
WorkflowStore
init
in interface WorkflowStore
props
- properties set in osworkflow.xmlpublic Step markFinished(Step step, int actionId, Date finishDate, String status, String caller)
WorkflowStore
markFinished
in interface WorkflowStore
step
- 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 WorkflowStore
step
- the step to be moved to workflow historypublic List query(WorkflowQuery query)
query
in interface WorkflowStore
query
- the query to usepublic List query(WorkflowExpressionQuery query)
query
in interface WorkflowStore
query
- the query to useCopyright © 2021 catworkx GmbH. All rights reserved.