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:
  • Field Details

  • Constructor Details

    • MonitorController

      public MonitorController()
  • Method Details

    • 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 processRef

      A 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:
    • getBase64

      public String getBase64(String key)
      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

      public static String generateBackgroundColorScheme()
      This helper method generates a backgroundColorScheme for chart diagrams.
      Returns: