We have started using Camunda Forms. We would like to dynamically populate options for a dropdown menu that the Select widget offers.
We have created a form like this:
We would like to dynamically populate the options by setting the variable “dynamic” in the code.
@Component
public class TestDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution delegateExecution) {
Object whatToPass = new Object();
delegateExecution.setVariable(“dynamic”, whatToPass);
}
}
We have tried passing JSONs, Strings but we did not succeed.