Package org.imixs.workflow.office.views
Class MonitorController
- java.lang.Object
-
- org.imixs.workflow.office.views.MonitorController
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class MonitorController extends Object implements Serializable
The MonitorController provides analytic information about the current process instance.- Version:
- 1.1
- Author:
- rsoika
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BoardControllerboardController
-
Constructor Summary
Constructors Constructor Description MonitorController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longcountTotalWorkitems(String group)This method returns the total count of workItems in a given Group.List<String>getActiveWorkflowGroups()Returns a string list with all active workflow groups within the current processRefStringgetBase64(String key)Helper method to convert a Group name into a base64 encoded string.Set<BoardCategory>getBoardCategories()StringgetGroupData()This method generates a complex json data structure containing the chart data for each groupStringgetOverallData()Deprecated.org.imixs.workflow.ItemCollectiongetProcess()StringgetProcessRef()List<String>getWorkflowGroups()Returns a string list with all workflow groupsvoidinit()Initialize default behavior initialize the processref, page index and phrasevoidrefresh()This method discards the cache.voidreset()This method discards the cache and rebuilds the board categories for the current ProcessRef.voidsetBoardCategories(Set<BoardCategory> boardCategories)
-
-
-
Field Detail
-
boardController
@Inject protected BoardController boardController
-
-
Method Detail
-
init
@PostConstruct public void init()
Initialize default behavior initialize the processref, page index and phrase
-
getProcessRef
public String getProcessRef()
-
getProcess
public org.imixs.workflow.ItemCollection getProcess()
-
getWorkflowGroups
public List<String> getWorkflowGroups()
Returns a string list with all workflow groups- Returns:
-
getActiveWorkflowGroups
public List<String> getActiveWorkflowGroups()
Returns a string list with all active workflow groups within the current processRefA workflowGroup is active if the group contains workItems
- Returns:
-
getBoardCategories
public Set<BoardCategory> getBoardCategories()
-
setBoardCategories
public void setBoardCategories(Set<BoardCategory> boardCategories)
-
countTotalWorkitems
public long countTotalWorkitems(String group)
This method returns the total count of workItems in a given Group.- Parameters:
group-- Returns:
-
reset
public void reset()
This method discards the cache and rebuilds the board categories for the current ProcessRef.
-
refresh
public void refresh()
This method discards the cache.
-
getOverallData
@Deprecated public String getOverallData()
Deprecated.data : { labels : [ 'Red', 'Blue', 'Yellow' ], datasets : [ { label : 'My First Dataset', data : [ 300, 50, 100 ], backgroundColor : [ 'rgb(255, 99, 132)', 'rgb(54, 162, 235)', 'rgb(255, 205, 86)' ] } ] }- Returns:
-
getGroupData
public String getGroupData()
This method generates a complex json data structure containing the chart data for each group[ { id: 'xxx', name: 'Order', data : {...} }, .... ] }- Returns:
-
-