Joget Workflow v6 Released

Check out the latest Joget Workflow v6 for many new features and improvements in user experience (UX), app maintainability and performance.

Skip to end of metadata
Go to start of metadata
Bean Shell Formatter allows you to write custom Java code to transform values on the datalist column.
New Feature

This is a new feature in Joget Workflow v6.


Figure 1: Bean Shell Formatter Properties


Script in Java.

The entire script is defaulted to be applied to every row in such column, hence user does not need to perform looping to apply transformation to every row.

Injected variables available for consumption are:-

  • datalist - org.joget.apps.datalist.model.DataList
  • column - org.joget.apps.datalist.model.DataListColumn
  • row - Object in DataListCollection (org.joget.apps.datalist.model.DataListCollection) returned by DataListBinder (org.joget.apps.datalist.model.DataListBinder).
    To retrieve the property value from Object row, use this service method: DataListService.evaluateColumnValueFromRow(Object row, String propertyName)
  • value - String

Returns a String.

Sample Code


It is also possible to inject hash variables into the values.

Sample Code


Example code using DataListService service method:

Sample Code




  • No labels