Class GenericWorkflowStore
java.lang.Object
org.ametys.plugins.workflow.store.AbstractJackrabbitWorkflowStore
org.ametys.plugins.workflow.store.GenericWorkflowStore
- All Implemented Interfaces:
com.opensymphony.workflow.spi.WorkflowStore
,AmetysWorkflowStore
- Direct Known Subclasses:
AvalonJackrabbitWorkflowStore
,WebGenericWorkflowStore
The generic workflow store.
- See Also:
-
Field Summary
Fields inherited from class org.ametys.plugins.workflow.store.AbstractJackrabbitWorkflowStore
__NAMESPACE, __NAMESPACE_PREFIX, __NM_PREFIX, __ROOT_NT, _log, _repository
-
Constructor Summary
ConstructorDescriptionGenericWorkflowStore
(Repository repository) Generic workflow store constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Create the root node._getEntryHash
(long entryId) Retrieve the hash used for an entry id.protected Node
_getOrCreateParentEntryNode
(Node root, long id) Retrieves the parent node of a workflow entry.protected Node
_getRootNode
(Session session) Get the workflow store root nodeboolean
Returns true if the history steps have to be removed when the workflow reaches its final stepMethods inherited from class org.ametys.plugins.workflow.store.AbstractJackrabbitWorkflowStore
__toCalendar, _getNextEntryId, _getNextStepId, _getSession, _release, buildFieldExpression, buildNestedExpression, clearHistory, createCurrentStep, createEntry, deleteInstance, findCurrentSteps, findEntry, findHistorySteps, getCondition, getEntryNode, getFirstFieldExpression, getPredicate, getPropertyName, getPropertySet, getSortCriteria, init, markFinished, moveToHistory, query, query, removeEntry, setEntryState, storeNewEntry, translateValue
-
Constructor Details
-
GenericWorkflowStore
Generic workflow store constructor- Parameters:
repository
- The repository
-
-
Method Details
-
shouldClearHistory
Description copied from interface:AmetysWorkflowStore
Returns true if the history steps have to be removed when the workflow reaches its final step- Returns:
- true if the history history has to be cleared.
-
_createRootNode
Description copied from class:AbstractJackrabbitWorkflowStore
Create the root node.- Specified by:
_createRootNode
in classAbstractJackrabbitWorkflowStore
- Throws:
RepositoryException
- if an error occurs.
-
_getRootNode
Description copied from class:AbstractJackrabbitWorkflowStore
Get the workflow store root node- Specified by:
_getRootNode
in classAbstractJackrabbitWorkflowStore
- Parameters:
session
- the session to use- Returns:
- The workflow store root node
- Throws:
RepositoryException
- if an error occurs.
-
_getEntryHash
Retrieve the hash used for an entry id.- Parameters:
entryId
- the entry id.- Returns:
- the hash parts.
-
_getOrCreateParentEntryNode
Description copied from class:AbstractJackrabbitWorkflowStore
Retrieves the parent node of a workflow entry. Creates non existing ancestor nodes when necessary.- Specified by:
_getOrCreateParentEntryNode
in classAbstractJackrabbitWorkflowStore
- Parameters:
root
- The workflow store root nodeid
- The workflow entry id- Returns:
- The parent node
- Throws:
RepositoryException
- on repository error
-