The issue is similar to my problem, but not the same. I use Java and in Camunda Platform 7 it was possible to specify the values of the Select dynamically. Similar to the topic what I found. In this Topic was answered that this comes in October, is already possible?
If it possible, how can I create the options for the Select in Java and how do I link them?
public class Option<T> {
private final String label;
private final T value;
public Option(String label, T value) {
this.label = label;
this.value = value;
}
public String getLabel() {
return label;
}
public T getValue() {
return value;
}
}
I created a list of Option, add the list in the variables and works.
@ZeebeWorker(type = "load-data", autoComplete = true)
public Map<String, Object> loadData(final ActivatedJob job) {
final List<Option<Integer>> data = new ArrayList<>();
data.add(new Option<>("A", 1));
data.add(new Option<>("B", 2));
data.add(new Option<>("C", 3));
HashMap<String, Object> variables = new HashMap<>();
variables.put("data", data);
return variables;
}