Embedded forms not working with deployment


I am working with some user forms and somehow they are not working. I’m deploying these through SpringProcessEngineConfiguration.setDeploymentResources(). I am verifying in Camunda admin and I can see the deployment is there. Please see the attachment.

Screenshot from 2021-06-07 20-11-17

But when I’m trying to get this form inside the user task, somehow the process cannot find it.

This is how I set the form key: embedded:deployment:create-frame-contract.html

If instead of that, I put the absolute path like this: embedded:deployment:/path/to/file/create-frame-contract.html it works.

Can you please help me with some advice?

Thank you

Still have the same problem so some advice would be great.

Thanks in advance