Package org.ametys.cms.workflow.history
Class WorkflowHistoryHelper
java.lang.Object
org.ametys.cms.workflow.history.WorkflowHistoryHelper
- All Implemented Interfaces:
Component
,Serviceable
This action returns the workflow history of a element with workflow
-
Field Summary
Modifier and TypeFieldDescriptionprotected UserHelper
The user helperstatic final String
The component role. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetWorkflowHistory
(ElementWithWorkflow objectWithWorkflow, long workflowId, com.opensymphony.workflow.Workflow workflow, int initialActionId) Get the workflow historyhistoryStep2Json
(HistoryStep historyStep) History step 2 JSONvoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
The component role. -
_userHelper
The user helper
-
-
Constructor Details
-
WorkflowHistoryHelper
public WorkflowHistoryHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getWorkflowHistory
public WorkflowHistory getWorkflowHistory(ElementWithWorkflow objectWithWorkflow, long workflowId, com.opensymphony.workflow.Workflow workflow, int initialActionId) throws ProcessingException, javax.jcr.RepositoryException Get the workflow history- Parameters:
objectWithWorkflow
- the object with workflowworkflowId
- the workflow idworkflow
- the workflowinitialActionId
- the initial action id- Returns:
- a workflow history
- Throws:
ProcessingException
- if a procession error occurredjavax.jcr.RepositoryException
- if a repository error occurred
-
historyStep2Json
public Map<String,Object> historyStep2Json(HistoryStep historyStep) throws javax.jcr.RepositoryException History step 2 JSON- Parameters:
historyStep
- the history step- Returns:
- the JSON map of the history step
- Throws:
javax.jcr.RepositoryException
- if a repository error occurred
-