How I can call a java class before starting a process?

I try create camunda form with select tag:

<select
        required
        id="Assignment"
        cam-variable-name="Assignment"
        cam-choices="assignments"
        cam-variable-type="String">
</select>

I need to fill it with values from the database when opening a form (before starting the process). But camunda not have form starter listener.

What I can use way for this?

Hi @Aryesia,

have a look at the form lifecycle: https://docs.camunda.org/manual/7.14/reference/embedded-forms/lifecycle/.

You can hook in with Javascript to read values for the select.

But not from process variables, as they didn’t exist on start forms.

Hope that helps, Ingo