Customizing the Work List Panel Appearance

You can change the appearance of the rows and cells that make up the Work List panel, based on the instance information that corresponds to each row.

You might want to change the colors and fonts of a cell or a row to draw attention to instances that match a certain condition. ALBPM WorkSpace provides a Java interface that you can implement to achieve this.

This interface allows you to:

Each of the methods of this interface receives a parameter of the type fuego.papi.InstanceInfo, that contains information about the instance. You can obtain instance information from this object, and based on it render the rows, cells or external variables values.

For information on how to compile and register this class, see Changing the Appearance of Work List Panels Based on the Instance Information.

For a reference of the WorkListDecorator interface, see Interface WorkListDecorator Reference.

Changing the Style of a Cell or a Row Based on the Instance Information

The following list shows examples of situations where you might need to change the style of a row or a cell:
  • To display a red background for all instances that are overdue
  • To decrease the font size of the Description field to accommodate long descriptions
  • To change the font color for unassigned instances

To change the style of a cell you must implement the method getCellStyle of the interface WorkListDecorator.

To change the style of a row you must implement the method getRowStyle of the interface WorkListDecorator.

These two methods return a String containing a CSS inline style. This style is used to render the corresponding cell or row.

Changing How a Value is Rendered

The interface WorkListDecorator provides a method that returns the HTML used to render the value of a variable.

Being able to change the HTML allows you not only to use an icon to display the value of the external variables, but you could also add the HTML code to add a button that looks up the content of the variable in a search engine.

To change the HTML used to render the value of a variable, you must implement the method getValue of the interface WorkListDecorator.