Package org.imixs.workflow.office.forms
Class HistoryController
java.lang.Object
org.imixs.workflow.office.forms.HistoryController
- All Implemented Interfaces:
Serializable
The HistoryController provides a history navigation over workItems the user
has selected. There for the controller listens to the events of the
WokflowController. The history workItems containing only the $uniqueid and a
minimum of attributes to display a summary.
- Author:
- rsoika
- See Also:
-
historynav.xhtml- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.imixs.workflow.engine.DocumentServiceprotected org.imixs.workflow.faces.data.WorkflowController -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseCurrentWorkitem(jakarta.faces.event.ActionEvent event) This action listener removes the current WorkItem from the history navigation and reset the workitem form the workflowcontroller.List<org.imixs.workflow.ItemCollection>retuns a list of all workites curently visitedvoidonWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) WorkflowEvent listener listens to WORKITEM events and adds or removes the current WorkItem from the history nav.removeWorkitem(String aID) The action method removes a workItem from the history list.voidsetCurrentId(String currentId)
-
Field Details
-
workflowController
@Inject protected org.imixs.workflow.faces.data.WorkflowController workflowController -
documentService
protected org.imixs.workflow.engine.DocumentService documentService
-
-
Constructor Details
-
HistoryController
public HistoryController()
-
-
Method Details
-
getCurrentId
-
setCurrentId
-
getWorkitems
retuns a list of all workites curently visited- Returns:
-
removeWorkitem
The action method removes a workItem from the history list. If the current workItem was removed the method switches automatically to the next workItem in the history list. If the list is empty the method returns the action 'home'. Otherwise it returns action ''.- Parameters:
id- - $UniqueIDaction- - default action- Returns:
- action
-
closeCurrentWorkitem
public void closeCurrentWorkitem(jakarta.faces.event.ActionEvent event) This action listener removes the current WorkItem from the history navigation and reset the workitem form the workflowcontroller.- Parameters:
aWorkitem-
-
onWorkflowEvent
public void onWorkflowEvent(@Observes org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) WorkflowEvent listener listens to WORKITEM events and adds or removes the current WorkItem from the history nav. If a WorkItem was processed (WORKITEM_AFTER_PROCESS), and the property 'action' is 'home' or 'notes' then the WorkItem will be removed from the history If a WorkItem was soft deleted (WORKITEM_AFTER_SOFTDELETE), the WorkItem will be removed from the history- Parameters:
workflowEvent-
-