Hi ,
I am trying to use camunda embedded form, I have created a process and have created an html form the added it to forms folder included in the resource folder of spring boot application then I have added the link of the form file as form key of the start event of the process, but I am always facing the below error
Form failure: The context path is either empty or not defined.
please anyone can help me ,I have interpreted every step in the attachments
Hi @Razan_AL-Ahmd
Do you have the “@EnableProcessApplication” annotation in your main class?
Regards,
Alex
Try to create the following folder structure a src/main/resources/META-INF/processes.xml and leave the processes.xml file empty.
In your case, you need to add the “META-INF” folder in the “resources” and create an empty file processes.xml in it
what I will put in this folder??
You will create an empty file named processes.xml
1 - You mentioned that you’ve added “@EnableProcessApplication” annotation to the main class but I do not see it on the screenshot anymore, just add @EnableProcessApplication
annotation and nothing more
2 - Delete the content that you added to the processes.xml, and leave it empty
I did what you learned me, but now I am facing the error as the attachment
it told me that processes.xml mustn’t be empty
I think that the error has nothing to do with processes.xml, you can read about it here processes.xml | docs.camunda.org and you can see that the error is now different from the initial one.
Can you share your BPMN file and the form?
One more thing that you can try. Set embedded:deployment:start.html
to the Form key field instead of embedded:app:forms/start.html
.
Regards,
Alex
The following configuration works fine for me:
- Add the
static
folder before the forms folder
- Set the form key as you set it initially:
embedded:app:forms/start.html
Yes it is solved when I did that, thanks for your huge support.
Regards.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.