8.5 Zeebe Usertasks External Reference

Hi there,

I am currently trying to migrate our user tasks to the new Zeebe Usertasks from Camunda 8.5.
We have a custom built tasklist and we are using the Job Worker implementation with the custom form key field.

When calling the Tasklist API to search for tasks the value from the custom form key field can be seen in the TaskResponse JSON.

The Zeebe Usertask Implementation has the External Form Reference field. My expectation was that this field is basically the same as the custom form key for Job Worker Implementation.

However when I´m requesting a zeebe user task from the tasklist API the field formKey in the JSON is empty.

Am I missing something here? I am testing this with the camunda docker compose Version 8.5.3.

Hi,
i ran into the same problem. How to determine the external form reference via tasklist rest api? Or is this feature not implemented yet?

I made a bit of a “dirty” workaround by giving the user task an input variable “formKey” in the process definition.

Our custom tasklist implementation then checks if the actual formKey field has a value if not it checks for this variable in the task.

Obviously not a nice workaround for production but I simply wanted it to work and for now we do not use zeebe usertasks in production.

Maybe a better workaround: When I start our tasklist, I create a cache via Operate API Get process definition as XML by key | Camunda 8 Docs. I parse the BPMN and cache all relevant user task data (form key, headers map for other features e.g. priorities, etc.).

1 Like

When will Usertasks External Reference value be available through REST request to TaskList or Zeebe endpoint?

1 Like

Greetings @Florian and welcome to the Camunda Forums!

The External Form Reference field will be available via the User Task REST API in Camunda 8.7 release.

Best regards.

1 Like

Thank you very much. This sounds great!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.