Class 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
    • Constructor Detail

      • MonitorController

        public MonitorController()
    • 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 processRef

        A workflowGroup is active if the group contains workItems

        Returns:
      • 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: