Hi there!
Given: We have a simple process that has a user task on which we have a form with exactly one field of type enum. And this is not a process start form. Field has 3 values and exactly one is default. I deploy, start the process and get one task. This field has to be used for recording decision.
In Camunda UI (in a generated form) I can select a value in a field and press Complete.
I am looking for REST API call or even set of consequent calls starting from some task by id for example, executing those I can get list of variables on the task (that is GET /task/{id}/form-variables
) and variable definitions (in my case I need the possible values from the enumeration).
Having: now I have a task and a form field ‘action’ with value ‘default’ (those both are defined by us). I can get rendered form in html format where I see possible values and this form is used by Camunda. That looks like what I need but not in the format I want. I need a JSON with field definition like: {name: action, definition: [A, B, default], type: enum}.
Questions: how can I get this information from REST API? I have went through docs like twice but have found nothing. Thanks.
Example flow.bpmn (7.0 KB)