Class CombinedWorklist

java.lang.Object
com.groiss.wf.html.CombinedWorklist
All Implemented Interfaces:
Worklist

public class CombinedWorklist extends Object implements Worklist
A worklist adapter that delegates the adapter method calls to all adapters configured in the params object in property adapters. Example for a configuration in xml: <params>{adapters: ["com.groiss.wf.html.FilteredWorklist", "test.TestWorklist"], filter: "task", exclude: ["itsm_support_task"]}</params> The worklist combines FilteredWorklist and a TestWorklist, properties filter and exclude are used by FilteredWorklist.
  • Constructor Details

    • CombinedWorklist

      public CombinedWorklist()
  • Method Details

    • init

      public void init(HttpServletRequest req, WorklistDescription wl, User u)
      Description copied from interface: Worklist
      You can init your class with the request. For your convenience, we tell you the kind of the worklist and the user
      Specified by:
      init in interface Worklist
      Parameters:
      req - the request; may be null when called from notification threads
      wl - the worklist description
      u - the user
    • getAdditionalData

      public void getAdditionalData(List<ActivityInstance> instances)
      Description copied from interface: Worklist
      Your chance to collect additional data for the instances. The method is not called when the list of instances is empty.
      Specified by:
      getAdditionalData in interface Worklist
      Parameters:
      instances - the activity instances
    • modifyColumns

      public void modifyColumns(List<ColumnDescription> colDescs)
      Description copied from interface: Worklist
      You get the header as we suggest it, a list of reserved keywords, like "id","process", "task". You can change this header as you like. The resulting header is used to build the table lines: for the keywords we add the corresponding column, for other names we add "null" elements. For smartclient this method is called when building the main-page
      Specified by:
      modifyColumns in interface Worklist
      Parameters:
      colDescs - list of header fields
    • getList

      public List<ActivityInstance> getList(List<ActivityInstance> ais)
      Description copied from interface: Worklist
      Change the list. Usually used for filtering, but the list can be extended, too. If getList() potentially extends the list by adding ActivityInstances not originally in it, then the type of the worklist node must include kind WorklistKind.AUGMENTED.
      Specified by:
      getList in interface Worklist
    • modifyTableLine

      public void modifyTableLine(ActivityInstance ai, Map<String,Object> line)
      Description copied from interface: Worklist
      Your chance to modify the line, called for each table line. Making the list empty removes the item from the worklist.
      Specified by:
      modifyTableLine in interface Worklist
      Parameters:
      ai - the activity instance
      line - the line
    • lineStyle

      public String lineStyle(ActivityInstance ai, String style)
      Description copied from interface: Worklist
      Change the style of the line.
      Specified by:
      lineStyle in interface Worklist
      Parameters:
      ai - the activity instance
      style - a style class
    • listFilters

      public List<Pair<String,String>> listFilters()
      Description copied from interface: Worklist
      Return a list of pairs containing id and name of self defined filters.
      Specified by:
      listFilters in interface Worklist