com.opensymphony.workflow.spi.hibernate
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Nested Class Summary | |
|---|---|
protected static interface |
AbstractHibernateWorkflowStore.InternalCallback
|
| Constructor Summary | |
|---|---|
AbstractHibernateWorkflowStore()
|
|
| 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. |
protected void |
delete(Object entry)
|
protected abstract Object |
execute(AbstractHibernateWorkflowStore.InternalCallback action)
|
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. |
protected String |
getCacheRegion()
|
protected net.sf.hibernate.expression.Criterion |
getExpression(WorkflowQuery query)
|
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(long entryId)
Returns a PropertySet that is associated with this workflow instance ID. |
PropertySetDelegate |
getPropertySetDelegate()
|
protected boolean |
isCacheable()
|
protected HibernateWorkflowEntry |
loadEntry(long entryId)
|
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)
|
protected void |
save(Object entry)
|
void |
setCacheable(boolean cacheable)
|
void |
setCacheRegion(String cacheRegion)
|
void |
setEntryState(long entryId,
int state)
Set the state of the workflow instance. |
void |
setPropertySetDelegate(PropertySetDelegate propertySetDelegate)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.opensymphony.workflow.spi.WorkflowStore |
|---|
init |
| Constructor Detail |
|---|
public AbstractHibernateWorkflowStore()
| Method Detail |
|---|
public void setCacheRegion(String cacheRegion)
public void setCacheable(boolean cacheable)
public void setEntryState(long entryId,
int state)
throws StoreException
WorkflowStore
setEntryState in interface WorkflowStoreentryId - The workflow instance id.state - The state to move the workflow instance to.
StoreException
public com.opensymphony.module.propertyset.PropertySet getPropertySet(long entryId)
throws StoreException
WorkflowStore
getPropertySet in interface WorkflowStoreentryId - The workflow instance id.
StoreExceptionpublic void setPropertySetDelegate(PropertySetDelegate propertySetDelegate)
public PropertySetDelegate getPropertySetDelegate()
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException
WorkflowStore
createCurrentStep in interface WorkflowStoreentryId - 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
StoreExceptionpublic WorkflowEntry createEntry(String workflowName) throws StoreException
WorkflowStore
createEntry in interface WorkflowStoreworkflowName - the workflow name that this entry is an instance of
StoreExceptionpublic List findCurrentSteps(long entryId) throws StoreException
WorkflowStore
findCurrentSteps in interface WorkflowStoreentryId - The workflow instance id.
StoreExceptionSteppublic WorkflowEntry findEntry(long entryId) throws StoreException
WorkflowStore
findEntry in interface WorkflowStoreentryId - The workflow instance id.
StoreExceptionpublic List findHistorySteps(long entryId) throws StoreException
WorkflowStore
findHistorySteps in interface WorkflowStoreentryId - The workflow instance id.
StoreExceptionSteppublic Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) throws StoreException
WorkflowStore
markFinished in interface WorkflowStorestep - 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.
StoreExceptionpublic void moveToHistory(Step step) throws StoreException
WorkflowStore
moveToHistory in interface WorkflowStorestep - the step to be moved to workflow history
StoreExceptionpublic List query(WorkflowQuery query) throws StoreException
query in interface WorkflowStorequery - the query to use
StoreExceptionpublic List query(WorkflowExpressionQuery query) throws StoreException
query in interface WorkflowStorequery - the query to use
StoreExceptionprotected abstract Object execute(AbstractHibernateWorkflowStore.InternalCallback action) throws StoreException
StoreExceptionprotected String getCacheRegion()
protected boolean isCacheable()
protected net.sf.hibernate.expression.Criterion getExpression(WorkflowQuery query) throws StoreException
StoreExceptionprotected void delete(Object entry) throws StoreException
StoreExceptionprotected HibernateWorkflowEntry loadEntry(long entryId) throws StoreException
StoreExceptionprotected void save(Object entry) throws StoreException
StoreException
|
OpenSymphony Workflow Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||