@Named @ConversationScoped public class ChronicleController extends Object implements Serializable
Each chronic entry for a workitme consists of the following data items:
With the method 'toggleFilter' the chronicle list can be filter to a specific type. This method call recalculates also the time data.
workitem_chronicle.xhtml,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected DMSController |
dmsController |
protected org.imixs.workflow.faces.data.WorkflowController |
workflowController |
protected WorkitemLinkController |
workitemLinkController |
protected WorkitemService |
workitemService |
| Constructor and Description |
|---|
ChronicleController() |
| Modifier and Type | Method and Description |
|---|---|
List<ChronicleEntity> |
getChroniclePerMonth(int year,
int month)
Returns all chronical entries by year/month
|
String |
getFilter()
Returns the current active filter or null if no filter is active.
|
List<Integer> |
getMonths(int year)
return months by year descending
|
List<Integer> |
getYears() |
void |
init() |
void |
onWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)
WorkflowEvent listener
If a new WorkItem was created the file upload will be reset.
|
void |
toggleFilter(String category)
This method call creates a new filtered list of the originChronicl List. and
recalculates also the time data.
|
@Inject protected org.imixs.workflow.faces.data.WorkflowController workflowController
@Inject protected DMSController dmsController
@Inject protected WorkitemLinkController workitemLinkController
protected WorkitemService workitemService
@PostConstruct public void init()
public void onWorkflowEvent(@Observes
org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)
If a new WorkItem was created the file upload will be reset.
workflowEvent - public String getFilter()
public List<Integer> getMonths(int year)
year - public List<ChronicleEntity> getChroniclePerMonth(int year, int month)
year - month - public void toggleFilter(String category)
category - Copyright © 2016–2022 Imixs Software Solutions GmbH. All rights reserved.