Posts

Showing posts from July, 2020

How to load data dynamically in ListBox of Task Form or Process Form in jBPM

Image
jBPM provides an option to populate ListBox dynamically in Task Form or Process Form. We would be using "jBPM-7.33.0.Final" version for this example. We can achieve this using Data Providers. Specifically, we need to create a class that implements  " org.kie.workbench.common.forms.dynamic.model.config.SelectorDataProvider" Interface . When the Field type attribute for the form field is configured as ListBox we have to implement a custom data provider class that implements SelectorDataProvider Interface . The implementation class of SelectorDataProvider needs to implement below two methods from the SelectorDataProvider. 1.   public String getProviderName()       - It returns the Provider name of the implementation class which will be used in the attribute " Data Provider " of the ListBox Form field. 2.  public SelectorData getSelectorData(FormRenderingContext context)       -  Using this method we can add the valu...