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
public class GenericWorkflowStore extends AbstractJackrabbitWorkflowStore
The generic workflow store.- See Also:
WorkflowProvider
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static String
__HTREE_NT
Internal hash tree node type.-
Fields inherited from class org.ametys.plugins.workflow.store.AbstractJackrabbitWorkflowStore
__ACTION_ID_PROPERTY, __CALLER_PROPERTY, __CURRENT_STEP_NODE, __DUE_DATE_PROPERTY, __ENTRY_NODE_PREFIX, __ENTRY_NT, __FINISH_DATE_PROPERTY, __HISTORY_STEP_NODE, __ID_PROPERTY, __NAMESPACE, __NAMESPACE_PREFIX, __NEXT_ENTRY_ID_PROPERTY, __NEXT_STEP_ID_PROPERTY, __NM_PREFIX, __OWNER_PROPERTY, __PREVIOUS_STEPS_PROPERTY, __ROOT_NODE, __ROOT_NT, __START_DATE_PROPERTY, __STATE_PROPERTY, __STATUS_PROPERTY, __STEP_ID_PROPERTY, __STEP_NT, __WF_NAME_PROPERTY, _log, _repository
-
-
Constructor Summary
Constructors Constructor Description GenericWorkflowStore(Repository repository)
Generic workflow store constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_createRootNode()
Create the root node.protected List<String>
_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
shouldClearHistory()
Returns true if the history steps have to be removed when the workflow reaches its final step-
Methods 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, getHistoryStepNode, getPredicate, getPropertyName, getPropertySet, getSortCriteria, init, markFinished, moveToHistory, query, query, removeEntry, setEntryState, storeNewEntry, translateValue
-
-
-
-
Field Detail
-
__HTREE_NT
static final String __HTREE_NT
Internal hash tree node type.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GenericWorkflowStore
public GenericWorkflowStore(Repository repository)
Generic workflow store constructor- Parameters:
repository
- The repository
-
-
Method Detail
-
shouldClearHistory
public boolean 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
protected void _createRootNode() throws RepositoryException
Description copied from class:AbstractJackrabbitWorkflowStore
Create the root node.- Specified by:
_createRootNode
in classAbstractJackrabbitWorkflowStore
- Throws:
RepositoryException
- if an error occurs.
-
_getRootNode
protected Node _getRootNode(Session session) throws RepositoryException
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
protected List<String> _getEntryHash(long entryId)
Retrieve the hash used for an entry id.- Parameters:
entryId
- the entry id.- Returns:
- the hash parts.
-
_getOrCreateParentEntryNode
protected Node _getOrCreateParentEntryNode(Node root, long id) throws RepositoryException
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
-
-