Start Process via API and parse variable values


#1

I have an HTML page which contains an input field and a Submit button. The button contains a POST call to start my task with

/engine-rest/process-definition/key/showcase/start

My question now is, if it would be possible to fill out variables a form contains at the beginning of my Task, with the input from my Website?
Maybe with a JSON Body or something similar?

Thanks in advance
Patrick Unverricht


#2

Yes you can, read here

https://docs.camunda.org/manual/7.11/user-guide/task-forms/#generated-task-forms
https://docs.camunda.org/manual/7.11/reference/rest/process-definition/get-form-variables/

Retrieves the start form variables for a process definition (only if they are defined via the Generated Task Form approach). The start form variables take form data specified on the start event into account. If form fields are defined, the variable types and default values of the form fields are taken into account.