Camunda 8 User Task Forms - Backend Validations

I use the Camunda 8.8 Self Managed stack, with a Spring Boot application for my custom business logic.

I have some User Tasks using the built-in Camunda forms (.form files). In some cases, I might have some validations which are backend-related, for example I have an input field which has to be validated by backend to check whether this value already exists in the database.

  1. Can I do this using .form files and somehow do a validation call in the Backend layer?
  2. I would also like to render a message in the user task form based on this Backend validation - is this possible?

Hi @Nikos_M - neither of these are supported by Tasklist today. For special cases like this, we recommend building your own task application. You can leverage the Tasklist API’s (and user task listeners) to work with the tasks and get real-time updates from your running processes, and you can use the form-js library to display the forms built in Modeler. This gives you full control over your user tasks.

1 Like

Is it possible to use embedded forms as in Camunda 7? Also, I wouldnt characterize this as a special case, sounds like a very basic case in an enterprise environment.

@Nikos_M - C8 doesn’t supported embedded forms like C7 did. There’s a few reasons for these design decisions, but they mostly come down to flexibility, scalability, and security.

That said, everything is still in active development and new features come with every release. Any feature suggestions you have, please share them through our roadmap: https://roadmap.camunda.com (there is a “Submit idea” button in the upper right). Those suggestions go directly to our product managers.