Why is the java FormField.defaultValue() function deprecated?

I’m building a decoupled website with Camunda handling workflows in the backend.
Now for a specific user task I want to utilize the forms provided by Camunda. So far everything looks good and works.

However in setting up a custom backend endpoint with which the frontend can build the form as specified in my workflow, I saw that the getDefaultValue() function on the FormField is deprecated. See related javadocs: FormField (camunda BPM Javadocs 7.3.7-ee)

But I see no explanation for why or a suggestion what I should use instead. But having this default value is useful for building a more complete experience in the frontend.

What should I use instead?

1 Like

Any update of the subject?

I don’t know yet, I’ve just used the deprecated function.

I just stumbled on the same issue. Any updates here?

Edit: I think it is set deprecated because the FormField.getValue() method contains the default value if nothing is set.