Package org.imixs.workflow.office.views
Class MonitorController
java.lang.Object
org.imixs.workflow.office.views.MonitorController
- All Implemented Interfaces:
Serializable
The MonitorController provides analytic information about the current process
instance.
- Version:
- 1.1
- Author:
- rsoika
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountTotalWorkitems(String group) This method returns the total count of workItems in a given Group.static StringThis helper method generates a backgroundColorScheme for chart diagrams.Returns a string list with all active workflow groups within the current processRefHelper method to convert a Group name into a base64 encoded string.This method generates a complex json data structure containing the chart data for each groupDeprecated.org.imixs.workflow.ItemCollectionReturns 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 Details
-
boardController
-
-
Constructor Details
-
MonitorController
public MonitorController()
-
-
Method Details
-
init
@PostConstruct public void init()Initialize default behavior initialize the processref, page index and phrase -
getProcessRef
-
getProcess
public org.imixs.workflow.ItemCollection getProcess() -
getWorkflowGroups
Returns a string list with all workflow groups- Returns:
-
getActiveWorkflowGroups
Returns a string list with all active workflow groups within the current processRefA workflowGroup is active if the group contains workItems
- Returns:
-
getBoardCategories
-
setBoardCategories
-
countTotalWorkitems
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.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
This method generates a complex json data structure containing the chart data for each group[ { id: 'xxx', name: 'Order', data : {...} }, .... ] }- Returns:
-
getBase64
Helper method to convert a Group name into a base64 encoded string.This is necessary to work with the group name as a key in javaScript
- Parameters:
key-- Returns:
-
generateBackgroundColorScheme
This helper method generates a backgroundColorScheme for chart diagrams.- Returns:
-