When deploying a process via the java api it works fine the first deployment, but if I make a change to the diagram and redeploy then the forms can no longer be found.
I am doing the following to deploy the process and form
[qtp779639592-36] WARN ExceptionHandler - org.camunda.bpm.engine.rest.exception.InvalidRequestException: The form with the resource name ‘forms/test-form.html’ cannot be found in deployment.
Unfortuantely I have already tried that and it gives me a different error of
Form failure: The context path is either empty or not defined.
as per the docs
deployment:: The file is part of your deployment (e.g., by adding it to your process archive), which means that it is stored in the Camunda database. It can then be loaded from there. Note that this allows versioning of your form alongside the process model.
So the form is fine on the initial deployment, but after that it is not able to be found using embedded:deployment