Package org.imixs.workflow.office.forms
Class ChronicleController
java.lang.Object
org.imixs.workflow.office.forms.ChronicleController
- All Implemented Interfaces:
Serializable
The ChronicleController collects all chronicle data
history, versions, comments, references, documents
Each chronic entry for a workitem consists of the following data items:
-
- type : date|history|file|version|
With the method 'toggleFilter' the chronicle list can be filter to a specific type. This method call recalculates also the time data.
- Author:
- rsoika,gheinle
- See Also:
-
workitem_chronicle.xhtml- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DMSControllerprotected org.imixs.workflow.engine.DocumentServiceprotected org.imixs.workflow.faces.data.WorkflowControllerprotected WorkitemLinkControllerprotected WorkitemService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChroniclePerMonth(int year, int month) Returns all chronical entries by year/monthReturns the current active filter or null if no filter is active.getMonths(int year) return months by year descendinggetYears()voidinit()This helper method is called during the WorkflowEvent.WORKITEM_CHANGED to update the chronicle view for the current workitem.voidonWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) WorkflowEvent listener If a new WorkItem was created or changed, the chronicle view will be initialized.voidtoggleFilter(String category) This method call creates a new filtered list of the originChronicl List. and recalculates also the time data.
-
Field Details
-
workflowController
@Inject protected org.imixs.workflow.faces.data.WorkflowController workflowController -
dmsController
-
workitemLinkController
-
workitemService
-
documentService
protected org.imixs.workflow.engine.DocumentService documentService
-
-
Constructor Details
-
ChronicleController
public ChronicleController()
-
-
Method Details
-
init
@PostConstruct public void init()This helper method is called during the WorkflowEvent.WORKITEM_CHANGED to update the chronicle view for the current workitem. -
onWorkflowEvent
public void onWorkflowEvent(@Observes org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) WorkflowEvent listener If a new WorkItem was created or changed, the chronicle view will be initialized.- Parameters:
workflowEvent-
-
getFilter
Returns the current active filter or null if no filter is active.- Returns:
-
getYears
-
getMonths
return months by year descending- Parameters:
year-- Returns:
-
getChroniclePerMonth
Returns all chronical entries by year/month- Parameters:
year-month-- Returns:
-
toggleFilter
This method call creates a new filtered list of the originChronicl List. and recalculates also the time data.- Parameters:
category-
-